@allbluecn/database 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/index.ts +14 -17
  2. package/package.json +29 -21
  3. package/pglite-init.ts +75 -0
  4. package/LICENSE +0 -661
  5. package/desktop-init.ts +0 -162
  6. package/generated-sqlite/browser.ts +0 -499
  7. package/generated-sqlite/client.ts +0 -523
  8. package/generated-sqlite/commonInputTypes.ts +0 -722
  9. package/generated-sqlite/enums.ts +0 -15
  10. package/generated-sqlite/internal/class.ts +0 -1154
  11. package/generated-sqlite/internal/prismaNamespace.ts +0 -9576
  12. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +0 -1761
  13. package/generated-sqlite/models/AgentConversation.ts +0 -1647
  14. package/generated-sqlite/models/AgentMessage.ts +0 -1406
  15. package/generated-sqlite/models/AiProvider.ts +0 -1605
  16. package/generated-sqlite/models/AiProviderConfig.ts +0 -1610
  17. package/generated-sqlite/models/AiStreamChunk.ts +0 -1157
  18. package/generated-sqlite/models/AiUsageLog.ts +0 -1905
  19. package/generated-sqlite/models/AnyHubApp.ts +0 -1908
  20. package/generated-sqlite/models/AnyHubMarketApp.ts +0 -1997
  21. package/generated-sqlite/models/AnyHubPermission.ts +0 -1419
  22. package/generated-sqlite/models/AnyHubRecommendation.ts +0 -1867
  23. package/generated-sqlite/models/AnyHubRecommender.ts +0 -1467
  24. package/generated-sqlite/models/ArticleFavorite.ts +0 -1349
  25. package/generated-sqlite/models/AuditLog.ts +0 -1287
  26. package/generated-sqlite/models/Blob.ts +0 -1425
  27. package/generated-sqlite/models/Block.ts +0 -1648
  28. package/generated-sqlite/models/BlockComponent.ts +0 -1730
  29. package/generated-sqlite/models/BlockInstance.ts +0 -2039
  30. package/generated-sqlite/models/BookmarkCategory.ts +0 -1667
  31. package/generated-sqlite/models/BusinessAgentBinding.ts +0 -1549
  32. package/generated-sqlite/models/ChatInterrupt.ts +0 -1736
  33. package/generated-sqlite/models/ChatMessage.ts +0 -1464
  34. package/generated-sqlite/models/ChatPersistenceMeta.ts +0 -1119
  35. package/generated-sqlite/models/ChatRun.ts +0 -1802
  36. package/generated-sqlite/models/ChatThread.ts +0 -2417
  37. package/generated-sqlite/models/CodeSnippet.ts +0 -1552
  38. package/generated-sqlite/models/Comment.ts +0 -2201
  39. package/generated-sqlite/models/CommentIgnore.ts +0 -1426
  40. package/generated-sqlite/models/ComplianceExport.ts +0 -1343
  41. package/generated-sqlite/models/Component.ts +0 -2132
  42. package/generated-sqlite/models/ComponentInstance.ts +0 -2097
  43. package/generated-sqlite/models/CustomRole.ts +0 -1209
  44. package/generated-sqlite/models/Design.ts +0 -2497
  45. package/generated-sqlite/models/DesignPage.ts +0 -2398
  46. package/generated-sqlite/models/DesignVersion.ts +0 -2117
  47. package/generated-sqlite/models/DesktopSetting.ts +0 -1057
  48. package/generated-sqlite/models/DeveloperLog.ts +0 -1281
  49. package/generated-sqlite/models/DictionaryTerm.ts +0 -1639
  50. package/generated-sqlite/models/EmailLog.ts +0 -1343
  51. package/generated-sqlite/models/EmailPreference.ts +0 -1255
  52. package/generated-sqlite/models/EmailSubscriber.ts +0 -1231
  53. package/generated-sqlite/models/EmailVerificationToken.ts +0 -1377
  54. package/generated-sqlite/models/GenerationRun.ts +0 -1732
  55. package/generated-sqlite/models/HarnessPlugin.ts +0 -1666
  56. package/generated-sqlite/models/HarnessWorkspace.ts +0 -1647
  57. package/generated-sqlite/models/IndustryCompliance.ts +0 -1794
  58. package/generated-sqlite/models/InvitationCode.ts +0 -1471
  59. package/generated-sqlite/models/InvitationUse.ts +0 -1420
  60. package/generated-sqlite/models/Invoice.ts +0 -1707
  61. package/generated-sqlite/models/Iteration.ts +0 -1874
  62. package/generated-sqlite/models/IterationAutoSchedule.ts +0 -1483
  63. package/generated-sqlite/models/KnowledgeBase.ts +0 -2238
  64. package/generated-sqlite/models/KnowledgeDocument.ts +0 -2450
  65. package/generated-sqlite/models/KnowledgeShareRecord.ts +0 -1349
  66. package/generated-sqlite/models/LegalRegulation.ts +0 -1905
  67. package/generated-sqlite/models/LicenseActivation.ts +0 -1203
  68. package/generated-sqlite/models/LicenseKey.ts +0 -1443
  69. package/generated-sqlite/models/LoginLog.ts +0 -1447
  70. package/generated-sqlite/models/NotificationPreference.ts +0 -1313
  71. package/generated-sqlite/models/OAuthProviderConfig.ts +0 -1225
  72. package/generated-sqlite/models/PageVersion.ts +0 -1520
  73. package/generated-sqlite/models/PasswordResetToken.ts +0 -1377
  74. package/generated-sqlite/models/Plan.ts +0 -2250
  75. package/generated-sqlite/models/Project.ts +0 -2628
  76. package/generated-sqlite/models/ProjectActivity.ts +0 -1578
  77. package/generated-sqlite/models/ProjectKnowledgeBase.ts +0 -1426
  78. package/generated-sqlite/models/ProjectMember.ts +0 -1508
  79. package/generated-sqlite/models/ProviderEvent.ts +0 -1225
  80. package/generated-sqlite/models/Reference.ts +0 -1175
  81. package/generated-sqlite/models/Review.ts +0 -1903
  82. package/generated-sqlite/models/ReviewComment.ts +0 -1899
  83. package/generated-sqlite/models/RoleAssignment.ts +0 -1125
  84. package/generated-sqlite/models/SandboxInstance.ts +0 -1283
  85. package/generated-sqlite/models/Share.ts +0 -1674
  86. package/generated-sqlite/models/ShareVersion.ts +0 -1385
  87. package/generated-sqlite/models/SsoMapping.ts +0 -1181
  88. package/generated-sqlite/models/SsoProvider.ts +0 -1266
  89. package/generated-sqlite/models/Story.ts +0 -3263
  90. package/generated-sqlite/models/Subscription.ts +0 -2137
  91. package/generated-sqlite/models/SystemPromptTemplate.ts +0 -1581
  92. package/generated-sqlite/models/SystemPromptVersion.ts +0 -1456
  93. package/generated-sqlite/models/SystemSetting.ts +0 -1215
  94. package/generated-sqlite/models/TeamInvitation.ts +0 -1758
  95. package/generated-sqlite/models/TeamJoinRequest.ts +0 -1793
  96. package/generated-sqlite/models/TeamMembership.ts +0 -1433
  97. package/generated-sqlite/models/Template.ts +0 -1389
  98. package/generated-sqlite/models/TemplateBlock.ts +0 -1660
  99. package/generated-sqlite/models/ThirdPartyDependency.ts +0 -1471
  100. package/generated-sqlite/models/UsageRecord.ts +0 -1498
  101. package/generated-sqlite/models/User.ts +0 -21247
  102. package/generated-sqlite/models/UserAgent.ts +0 -2146
  103. package/generated-sqlite/models/UserSkill.ts +0 -1453
  104. package/generated-sqlite/models/WebsiteBookmark.ts +0 -2215
  105. package/generated-sqlite/models/Workspace.ts +0 -2341
  106. package/generated-sqlite/models/WorkspaceFile.ts +0 -1532
  107. package/generated-sqlite/models/WorkspaceKnowledgeBase.ts +0 -1426
  108. package/generated-sqlite/models/WorkspaceQuickDoc.ts +0 -2025
  109. package/generated-sqlite/models.ts +0 -107
  110. package/schema.sqlite.prisma +0 -2045
@@ -1,1471 +0,0 @@
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 `InvitationCode` model and its related types.
8
- *
9
- * 🟢 You can import this file directly.
10
- */
11
- import type * as runtime from "@prisma/client/runtime/client"
12
- import type * as $Enums from "../enums.ts"
13
- import type * as Prisma from "../internal/prismaNamespace.ts"
14
-
15
- /**
16
- * Model InvitationCode
17
- *
18
- */
19
- export type InvitationCodeModel = runtime.Types.Result.DefaultSelection<Prisma.$InvitationCodePayload>
20
-
21
- export type AggregateInvitationCode = {
22
- _count: InvitationCodeCountAggregateOutputType | null
23
- _avg: InvitationCodeAvgAggregateOutputType | null
24
- _sum: InvitationCodeSumAggregateOutputType | null
25
- _min: InvitationCodeMinAggregateOutputType | null
26
- _max: InvitationCodeMaxAggregateOutputType | null
27
- }
28
-
29
- export type InvitationCodeAvgAggregateOutputType = {
30
- maxUses: number | null
31
- usedCount: number | null
32
- }
33
-
34
- export type InvitationCodeSumAggregateOutputType = {
35
- maxUses: number | null
36
- usedCount: number | null
37
- }
38
-
39
- export type InvitationCodeMinAggregateOutputType = {
40
- id: string | null
41
- code: string | null
42
- maxUses: number | null
43
- usedCount: number | null
44
- expiresAt: Date | null
45
- createdAt: Date | null
46
- createdById: string | null
47
- disabledAt: Date | null
48
- }
49
-
50
- export type InvitationCodeMaxAggregateOutputType = {
51
- id: string | null
52
- code: string | null
53
- maxUses: number | null
54
- usedCount: number | null
55
- expiresAt: Date | null
56
- createdAt: Date | null
57
- createdById: string | null
58
- disabledAt: Date | null
59
- }
60
-
61
- export type InvitationCodeCountAggregateOutputType = {
62
- id: number
63
- code: number
64
- maxUses: number
65
- usedCount: number
66
- expiresAt: number
67
- createdAt: number
68
- createdById: number
69
- disabledAt: number
70
- _all: number
71
- }
72
-
73
-
74
- export type InvitationCodeAvgAggregateInputType = {
75
- maxUses?: true
76
- usedCount?: true
77
- }
78
-
79
- export type InvitationCodeSumAggregateInputType = {
80
- maxUses?: true
81
- usedCount?: true
82
- }
83
-
84
- export type InvitationCodeMinAggregateInputType = {
85
- id?: true
86
- code?: true
87
- maxUses?: true
88
- usedCount?: true
89
- expiresAt?: true
90
- createdAt?: true
91
- createdById?: true
92
- disabledAt?: true
93
- }
94
-
95
- export type InvitationCodeMaxAggregateInputType = {
96
- id?: true
97
- code?: true
98
- maxUses?: true
99
- usedCount?: true
100
- expiresAt?: true
101
- createdAt?: true
102
- createdById?: true
103
- disabledAt?: true
104
- }
105
-
106
- export type InvitationCodeCountAggregateInputType = {
107
- id?: true
108
- code?: true
109
- maxUses?: true
110
- usedCount?: true
111
- expiresAt?: true
112
- createdAt?: true
113
- createdById?: true
114
- disabledAt?: true
115
- _all?: true
116
- }
117
-
118
- export type InvitationCodeAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
119
- /**
120
- * Filter which InvitationCode to aggregate.
121
- */
122
- where?: Prisma.InvitationCodeWhereInput
123
- /**
124
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
125
- *
126
- * Determine the order of InvitationCodes to fetch.
127
- */
128
- orderBy?: Prisma.InvitationCodeOrderByWithRelationInput | Prisma.InvitationCodeOrderByWithRelationInput[]
129
- /**
130
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
131
- *
132
- * Sets the start position
133
- */
134
- cursor?: Prisma.InvitationCodeWhereUniqueInput
135
- /**
136
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
137
- *
138
- * Take `±n` InvitationCodes from the position of the cursor.
139
- */
140
- take?: number
141
- /**
142
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
143
- *
144
- * Skip the first `n` InvitationCodes.
145
- */
146
- skip?: number
147
- /**
148
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
- *
150
- * Count returned InvitationCodes
151
- **/
152
- _count?: true | InvitationCodeCountAggregateInputType
153
- /**
154
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
- *
156
- * Select which fields to average
157
- **/
158
- _avg?: InvitationCodeAvgAggregateInputType
159
- /**
160
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
- *
162
- * Select which fields to sum
163
- **/
164
- _sum?: InvitationCodeSumAggregateInputType
165
- /**
166
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
- *
168
- * Select which fields to find the minimum value
169
- **/
170
- _min?: InvitationCodeMinAggregateInputType
171
- /**
172
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
- *
174
- * Select which fields to find the maximum value
175
- **/
176
- _max?: InvitationCodeMaxAggregateInputType
177
- }
178
-
179
- export type GetInvitationCodeAggregateType<T extends InvitationCodeAggregateArgs> = {
180
- [P in keyof T & keyof AggregateInvitationCode]: P extends '_count' | 'count'
181
- ? T[P] extends true
182
- ? number
183
- : Prisma.GetScalarType<T[P], AggregateInvitationCode[P]>
184
- : Prisma.GetScalarType<T[P], AggregateInvitationCode[P]>
185
- }
186
-
187
-
188
-
189
-
190
- export type InvitationCodeGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
191
- where?: Prisma.InvitationCodeWhereInput
192
- orderBy?: Prisma.InvitationCodeOrderByWithAggregationInput | Prisma.InvitationCodeOrderByWithAggregationInput[]
193
- by: Prisma.InvitationCodeScalarFieldEnum[] | Prisma.InvitationCodeScalarFieldEnum
194
- having?: Prisma.InvitationCodeScalarWhereWithAggregatesInput
195
- take?: number
196
- skip?: number
197
- _count?: InvitationCodeCountAggregateInputType | true
198
- _avg?: InvitationCodeAvgAggregateInputType
199
- _sum?: InvitationCodeSumAggregateInputType
200
- _min?: InvitationCodeMinAggregateInputType
201
- _max?: InvitationCodeMaxAggregateInputType
202
- }
203
-
204
- export type InvitationCodeGroupByOutputType = {
205
- id: string
206
- code: string
207
- maxUses: number
208
- usedCount: number
209
- expiresAt: Date
210
- createdAt: Date
211
- createdById: string | null
212
- disabledAt: Date | null
213
- _count: InvitationCodeCountAggregateOutputType | null
214
- _avg: InvitationCodeAvgAggregateOutputType | null
215
- _sum: InvitationCodeSumAggregateOutputType | null
216
- _min: InvitationCodeMinAggregateOutputType | null
217
- _max: InvitationCodeMaxAggregateOutputType | null
218
- }
219
-
220
- export type GetInvitationCodeGroupByPayload<T extends InvitationCodeGroupByArgs> = Prisma.PrismaPromise<
221
- Array<
222
- Prisma.PickEnumerable<InvitationCodeGroupByOutputType, T['by']> &
223
- {
224
- [P in ((keyof T) & (keyof InvitationCodeGroupByOutputType))]: P extends '_count'
225
- ? T[P] extends boolean
226
- ? number
227
- : Prisma.GetScalarType<T[P], InvitationCodeGroupByOutputType[P]>
228
- : Prisma.GetScalarType<T[P], InvitationCodeGroupByOutputType[P]>
229
- }
230
- >
231
- >
232
-
233
-
234
-
235
- export type InvitationCodeWhereInput = {
236
- AND?: Prisma.InvitationCodeWhereInput | Prisma.InvitationCodeWhereInput[]
237
- OR?: Prisma.InvitationCodeWhereInput[]
238
- NOT?: Prisma.InvitationCodeWhereInput | Prisma.InvitationCodeWhereInput[]
239
- id?: Prisma.StringFilter<"InvitationCode"> | string
240
- code?: Prisma.StringFilter<"InvitationCode"> | string
241
- maxUses?: Prisma.IntFilter<"InvitationCode"> | number
242
- usedCount?: Prisma.IntFilter<"InvitationCode"> | number
243
- expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
244
- createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
245
- createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
246
- disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
247
- uses?: Prisma.InvitationUseListRelationFilter
248
- }
249
-
250
- export type InvitationCodeOrderByWithRelationInput = {
251
- id?: Prisma.SortOrder
252
- code?: Prisma.SortOrder
253
- maxUses?: Prisma.SortOrder
254
- usedCount?: Prisma.SortOrder
255
- expiresAt?: Prisma.SortOrder
256
- createdAt?: Prisma.SortOrder
257
- createdById?: Prisma.SortOrderInput | Prisma.SortOrder
258
- disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
259
- uses?: Prisma.InvitationUseOrderByRelationAggregateInput
260
- }
261
-
262
- export type InvitationCodeWhereUniqueInput = Prisma.AtLeast<{
263
- id?: string
264
- code?: string
265
- AND?: Prisma.InvitationCodeWhereInput | Prisma.InvitationCodeWhereInput[]
266
- OR?: Prisma.InvitationCodeWhereInput[]
267
- NOT?: Prisma.InvitationCodeWhereInput | Prisma.InvitationCodeWhereInput[]
268
- maxUses?: Prisma.IntFilter<"InvitationCode"> | number
269
- usedCount?: Prisma.IntFilter<"InvitationCode"> | number
270
- expiresAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
271
- createdAt?: Prisma.DateTimeFilter<"InvitationCode"> | Date | string
272
- createdById?: Prisma.StringNullableFilter<"InvitationCode"> | string | null
273
- disabledAt?: Prisma.DateTimeNullableFilter<"InvitationCode"> | Date | string | null
274
- uses?: Prisma.InvitationUseListRelationFilter
275
- }, "id" | "code">
276
-
277
- export type InvitationCodeOrderByWithAggregationInput = {
278
- id?: Prisma.SortOrder
279
- code?: Prisma.SortOrder
280
- maxUses?: Prisma.SortOrder
281
- usedCount?: Prisma.SortOrder
282
- expiresAt?: Prisma.SortOrder
283
- createdAt?: Prisma.SortOrder
284
- createdById?: Prisma.SortOrderInput | Prisma.SortOrder
285
- disabledAt?: Prisma.SortOrderInput | Prisma.SortOrder
286
- _count?: Prisma.InvitationCodeCountOrderByAggregateInput
287
- _avg?: Prisma.InvitationCodeAvgOrderByAggregateInput
288
- _max?: Prisma.InvitationCodeMaxOrderByAggregateInput
289
- _min?: Prisma.InvitationCodeMinOrderByAggregateInput
290
- _sum?: Prisma.InvitationCodeSumOrderByAggregateInput
291
- }
292
-
293
- export type InvitationCodeScalarWhereWithAggregatesInput = {
294
- AND?: Prisma.InvitationCodeScalarWhereWithAggregatesInput | Prisma.InvitationCodeScalarWhereWithAggregatesInput[]
295
- OR?: Prisma.InvitationCodeScalarWhereWithAggregatesInput[]
296
- NOT?: Prisma.InvitationCodeScalarWhereWithAggregatesInput | Prisma.InvitationCodeScalarWhereWithAggregatesInput[]
297
- id?: Prisma.StringWithAggregatesFilter<"InvitationCode"> | string
298
- code?: Prisma.StringWithAggregatesFilter<"InvitationCode"> | string
299
- maxUses?: Prisma.IntWithAggregatesFilter<"InvitationCode"> | number
300
- usedCount?: Prisma.IntWithAggregatesFilter<"InvitationCode"> | number
301
- expiresAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
302
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"InvitationCode"> | Date | string
303
- createdById?: Prisma.StringNullableWithAggregatesFilter<"InvitationCode"> | string | null
304
- disabledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"InvitationCode"> | Date | string | null
305
- }
306
-
307
- export type InvitationCodeCreateInput = {
308
- id?: string
309
- code: string
310
- maxUses?: number
311
- usedCount?: number
312
- expiresAt: Date | string
313
- createdAt?: Date | string
314
- createdById?: string | null
315
- disabledAt?: Date | string | null
316
- uses?: Prisma.InvitationUseCreateNestedManyWithoutCodeInput
317
- }
318
-
319
- export type InvitationCodeUncheckedCreateInput = {
320
- id?: string
321
- code: string
322
- maxUses?: number
323
- usedCount?: number
324
- expiresAt: Date | string
325
- createdAt?: Date | string
326
- createdById?: string | null
327
- disabledAt?: Date | string | null
328
- uses?: Prisma.InvitationUseUncheckedCreateNestedManyWithoutCodeInput
329
- }
330
-
331
- export type InvitationCodeUpdateInput = {
332
- id?: Prisma.StringFieldUpdateOperationsInput | string
333
- code?: Prisma.StringFieldUpdateOperationsInput | string
334
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
335
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
336
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
337
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
338
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
339
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
340
- uses?: Prisma.InvitationUseUpdateManyWithoutCodeNestedInput
341
- }
342
-
343
- export type InvitationCodeUncheckedUpdateInput = {
344
- id?: Prisma.StringFieldUpdateOperationsInput | string
345
- code?: Prisma.StringFieldUpdateOperationsInput | string
346
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
347
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
348
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
349
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
350
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
351
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
352
- uses?: Prisma.InvitationUseUncheckedUpdateManyWithoutCodeNestedInput
353
- }
354
-
355
- export type InvitationCodeCreateManyInput = {
356
- id?: string
357
- code: string
358
- maxUses?: number
359
- usedCount?: number
360
- expiresAt: Date | string
361
- createdAt?: Date | string
362
- createdById?: string | null
363
- disabledAt?: Date | string | null
364
- }
365
-
366
- export type InvitationCodeUpdateManyMutationInput = {
367
- id?: Prisma.StringFieldUpdateOperationsInput | string
368
- code?: Prisma.StringFieldUpdateOperationsInput | string
369
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
370
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
371
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
372
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
373
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
374
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
375
- }
376
-
377
- export type InvitationCodeUncheckedUpdateManyInput = {
378
- id?: Prisma.StringFieldUpdateOperationsInput | string
379
- code?: Prisma.StringFieldUpdateOperationsInput | string
380
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
381
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
382
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
383
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
384
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
385
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
386
- }
387
-
388
- export type InvitationCodeCountOrderByAggregateInput = {
389
- id?: Prisma.SortOrder
390
- code?: Prisma.SortOrder
391
- maxUses?: Prisma.SortOrder
392
- usedCount?: Prisma.SortOrder
393
- expiresAt?: Prisma.SortOrder
394
- createdAt?: Prisma.SortOrder
395
- createdById?: Prisma.SortOrder
396
- disabledAt?: Prisma.SortOrder
397
- }
398
-
399
- export type InvitationCodeAvgOrderByAggregateInput = {
400
- maxUses?: Prisma.SortOrder
401
- usedCount?: Prisma.SortOrder
402
- }
403
-
404
- export type InvitationCodeMaxOrderByAggregateInput = {
405
- id?: Prisma.SortOrder
406
- code?: Prisma.SortOrder
407
- maxUses?: Prisma.SortOrder
408
- usedCount?: Prisma.SortOrder
409
- expiresAt?: Prisma.SortOrder
410
- createdAt?: Prisma.SortOrder
411
- createdById?: Prisma.SortOrder
412
- disabledAt?: Prisma.SortOrder
413
- }
414
-
415
- export type InvitationCodeMinOrderByAggregateInput = {
416
- id?: Prisma.SortOrder
417
- code?: Prisma.SortOrder
418
- maxUses?: Prisma.SortOrder
419
- usedCount?: Prisma.SortOrder
420
- expiresAt?: Prisma.SortOrder
421
- createdAt?: Prisma.SortOrder
422
- createdById?: Prisma.SortOrder
423
- disabledAt?: Prisma.SortOrder
424
- }
425
-
426
- export type InvitationCodeSumOrderByAggregateInput = {
427
- maxUses?: Prisma.SortOrder
428
- usedCount?: Prisma.SortOrder
429
- }
430
-
431
- export type InvitationCodeScalarRelationFilter = {
432
- is?: Prisma.InvitationCodeWhereInput
433
- isNot?: Prisma.InvitationCodeWhereInput
434
- }
435
-
436
- export type InvitationCodeCreateNestedOneWithoutUsesInput = {
437
- create?: Prisma.XOR<Prisma.InvitationCodeCreateWithoutUsesInput, Prisma.InvitationCodeUncheckedCreateWithoutUsesInput>
438
- connectOrCreate?: Prisma.InvitationCodeCreateOrConnectWithoutUsesInput
439
- connect?: Prisma.InvitationCodeWhereUniqueInput
440
- }
441
-
442
- export type InvitationCodeUpdateOneRequiredWithoutUsesNestedInput = {
443
- create?: Prisma.XOR<Prisma.InvitationCodeCreateWithoutUsesInput, Prisma.InvitationCodeUncheckedCreateWithoutUsesInput>
444
- connectOrCreate?: Prisma.InvitationCodeCreateOrConnectWithoutUsesInput
445
- upsert?: Prisma.InvitationCodeUpsertWithoutUsesInput
446
- connect?: Prisma.InvitationCodeWhereUniqueInput
447
- update?: Prisma.XOR<Prisma.XOR<Prisma.InvitationCodeUpdateToOneWithWhereWithoutUsesInput, Prisma.InvitationCodeUpdateWithoutUsesInput>, Prisma.InvitationCodeUncheckedUpdateWithoutUsesInput>
448
- }
449
-
450
- export type InvitationCodeCreateWithoutUsesInput = {
451
- id?: string
452
- code: string
453
- maxUses?: number
454
- usedCount?: number
455
- expiresAt: Date | string
456
- createdAt?: Date | string
457
- createdById?: string | null
458
- disabledAt?: Date | string | null
459
- }
460
-
461
- export type InvitationCodeUncheckedCreateWithoutUsesInput = {
462
- id?: string
463
- code: string
464
- maxUses?: number
465
- usedCount?: number
466
- expiresAt: Date | string
467
- createdAt?: Date | string
468
- createdById?: string | null
469
- disabledAt?: Date | string | null
470
- }
471
-
472
- export type InvitationCodeCreateOrConnectWithoutUsesInput = {
473
- where: Prisma.InvitationCodeWhereUniqueInput
474
- create: Prisma.XOR<Prisma.InvitationCodeCreateWithoutUsesInput, Prisma.InvitationCodeUncheckedCreateWithoutUsesInput>
475
- }
476
-
477
- export type InvitationCodeUpsertWithoutUsesInput = {
478
- update: Prisma.XOR<Prisma.InvitationCodeUpdateWithoutUsesInput, Prisma.InvitationCodeUncheckedUpdateWithoutUsesInput>
479
- create: Prisma.XOR<Prisma.InvitationCodeCreateWithoutUsesInput, Prisma.InvitationCodeUncheckedCreateWithoutUsesInput>
480
- where?: Prisma.InvitationCodeWhereInput
481
- }
482
-
483
- export type InvitationCodeUpdateToOneWithWhereWithoutUsesInput = {
484
- where?: Prisma.InvitationCodeWhereInput
485
- data: Prisma.XOR<Prisma.InvitationCodeUpdateWithoutUsesInput, Prisma.InvitationCodeUncheckedUpdateWithoutUsesInput>
486
- }
487
-
488
- export type InvitationCodeUpdateWithoutUsesInput = {
489
- id?: Prisma.StringFieldUpdateOperationsInput | string
490
- code?: Prisma.StringFieldUpdateOperationsInput | string
491
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
492
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
493
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
494
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
495
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
496
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
497
- }
498
-
499
- export type InvitationCodeUncheckedUpdateWithoutUsesInput = {
500
- id?: Prisma.StringFieldUpdateOperationsInput | string
501
- code?: Prisma.StringFieldUpdateOperationsInput | string
502
- maxUses?: Prisma.IntFieldUpdateOperationsInput | number
503
- usedCount?: Prisma.IntFieldUpdateOperationsInput | number
504
- expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
505
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
506
- createdById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
507
- disabledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
508
- }
509
-
510
-
511
- /**
512
- * Count Type InvitationCodeCountOutputType
513
- */
514
-
515
- export type InvitationCodeCountOutputType = {
516
- uses: number
517
- }
518
-
519
- export type InvitationCodeCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
520
- uses?: boolean | InvitationCodeCountOutputTypeCountUsesArgs
521
- }
522
-
523
- /**
524
- * InvitationCodeCountOutputType without action
525
- */
526
- export type InvitationCodeCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
527
- /**
528
- * Select specific fields to fetch from the InvitationCodeCountOutputType
529
- */
530
- select?: Prisma.InvitationCodeCountOutputTypeSelect<ExtArgs> | null
531
- }
532
-
533
- /**
534
- * InvitationCodeCountOutputType without action
535
- */
536
- export type InvitationCodeCountOutputTypeCountUsesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
537
- where?: Prisma.InvitationUseWhereInput
538
- }
539
-
540
-
541
- export type InvitationCodeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
542
- id?: boolean
543
- code?: boolean
544
- maxUses?: boolean
545
- usedCount?: boolean
546
- expiresAt?: boolean
547
- createdAt?: boolean
548
- createdById?: boolean
549
- disabledAt?: boolean
550
- uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
551
- _count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
552
- }, ExtArgs["result"]["invitationCode"]>
553
-
554
- export type InvitationCodeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
555
- id?: boolean
556
- code?: boolean
557
- maxUses?: boolean
558
- usedCount?: boolean
559
- expiresAt?: boolean
560
- createdAt?: boolean
561
- createdById?: boolean
562
- disabledAt?: boolean
563
- }, ExtArgs["result"]["invitationCode"]>
564
-
565
- export type InvitationCodeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
566
- id?: boolean
567
- code?: boolean
568
- maxUses?: boolean
569
- usedCount?: boolean
570
- expiresAt?: boolean
571
- createdAt?: boolean
572
- createdById?: boolean
573
- disabledAt?: boolean
574
- }, ExtArgs["result"]["invitationCode"]>
575
-
576
- export type InvitationCodeSelectScalar = {
577
- id?: boolean
578
- code?: boolean
579
- maxUses?: boolean
580
- usedCount?: boolean
581
- expiresAt?: boolean
582
- createdAt?: boolean
583
- createdById?: boolean
584
- disabledAt?: boolean
585
- }
586
-
587
- export type InvitationCodeOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "code" | "maxUses" | "usedCount" | "expiresAt" | "createdAt" | "createdById" | "disabledAt", ExtArgs["result"]["invitationCode"]>
588
- export type InvitationCodeInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
589
- uses?: boolean | Prisma.InvitationCode$usesArgs<ExtArgs>
590
- _count?: boolean | Prisma.InvitationCodeCountOutputTypeDefaultArgs<ExtArgs>
591
- }
592
- export type InvitationCodeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
593
- export type InvitationCodeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
594
-
595
- export type $InvitationCodePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
596
- name: "InvitationCode"
597
- objects: {
598
- uses: Prisma.$InvitationUsePayload<ExtArgs>[]
599
- }
600
- scalars: runtime.Types.Extensions.GetPayloadResult<{
601
- id: string
602
- code: string
603
- maxUses: number
604
- usedCount: number
605
- expiresAt: Date
606
- createdAt: Date
607
- createdById: string | null
608
- disabledAt: Date | null
609
- }, ExtArgs["result"]["invitationCode"]>
610
- composites: {}
611
- }
612
-
613
- export type InvitationCodeGetPayload<S extends boolean | null | undefined | InvitationCodeDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload, S>
614
-
615
- export type InvitationCodeCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
616
- Omit<InvitationCodeFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
617
- select?: InvitationCodeCountAggregateInputType | true
618
- }
619
-
620
- export interface InvitationCodeDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
621
- [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['InvitationCode'], meta: { name: 'InvitationCode' } }
622
- /**
623
- * Find zero or one InvitationCode that matches the filter.
624
- * @param {InvitationCodeFindUniqueArgs} args - Arguments to find a InvitationCode
625
- * @example
626
- * // Get one InvitationCode
627
- * const invitationCode = await prisma.invitationCode.findUnique({
628
- * where: {
629
- * // ... provide filter here
630
- * }
631
- * })
632
- */
633
- findUnique<T extends InvitationCodeFindUniqueArgs>(args: Prisma.SelectSubset<T, InvitationCodeFindUniqueArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
634
-
635
- /**
636
- * Find one InvitationCode that matches the filter or throw an error with `error.code='P2025'`
637
- * if no matches were found.
638
- * @param {InvitationCodeFindUniqueOrThrowArgs} args - Arguments to find a InvitationCode
639
- * @example
640
- * // Get one InvitationCode
641
- * const invitationCode = await prisma.invitationCode.findUniqueOrThrow({
642
- * where: {
643
- * // ... provide filter here
644
- * }
645
- * })
646
- */
647
- findUniqueOrThrow<T extends InvitationCodeFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, InvitationCodeFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
648
-
649
- /**
650
- * Find the first InvitationCode that matches the filter.
651
- * Note, that providing `undefined` is treated as the value not being there.
652
- * Read more here: https://pris.ly/d/null-undefined
653
- * @param {InvitationCodeFindFirstArgs} args - Arguments to find a InvitationCode
654
- * @example
655
- * // Get one InvitationCode
656
- * const invitationCode = await prisma.invitationCode.findFirst({
657
- * where: {
658
- * // ... provide filter here
659
- * }
660
- * })
661
- */
662
- findFirst<T extends InvitationCodeFindFirstArgs>(args?: Prisma.SelectSubset<T, InvitationCodeFindFirstArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
663
-
664
- /**
665
- * Find the first InvitationCode that matches the filter or
666
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
667
- * Note, that providing `undefined` is treated as the value not being there.
668
- * Read more here: https://pris.ly/d/null-undefined
669
- * @param {InvitationCodeFindFirstOrThrowArgs} args - Arguments to find a InvitationCode
670
- * @example
671
- * // Get one InvitationCode
672
- * const invitationCode = await prisma.invitationCode.findFirstOrThrow({
673
- * where: {
674
- * // ... provide filter here
675
- * }
676
- * })
677
- */
678
- findFirstOrThrow<T extends InvitationCodeFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, InvitationCodeFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
679
-
680
- /**
681
- * Find zero or more InvitationCodes that matches the filter.
682
- * Note, that providing `undefined` is treated as the value not being there.
683
- * Read more here: https://pris.ly/d/null-undefined
684
- * @param {InvitationCodeFindManyArgs} args - Arguments to filter and select certain fields only.
685
- * @example
686
- * // Get all InvitationCodes
687
- * const invitationCodes = await prisma.invitationCode.findMany()
688
- *
689
- * // Get first 10 InvitationCodes
690
- * const invitationCodes = await prisma.invitationCode.findMany({ take: 10 })
691
- *
692
- * // Only select the `id`
693
- * const invitationCodeWithIdOnly = await prisma.invitationCode.findMany({ select: { id: true } })
694
- *
695
- */
696
- findMany<T extends InvitationCodeFindManyArgs>(args?: Prisma.SelectSubset<T, InvitationCodeFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
697
-
698
- /**
699
- * Create a InvitationCode.
700
- * @param {InvitationCodeCreateArgs} args - Arguments to create a InvitationCode.
701
- * @example
702
- * // Create one InvitationCode
703
- * const InvitationCode = await prisma.invitationCode.create({
704
- * data: {
705
- * // ... data to create a InvitationCode
706
- * }
707
- * })
708
- *
709
- */
710
- create<T extends InvitationCodeCreateArgs>(args: Prisma.SelectSubset<T, InvitationCodeCreateArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
711
-
712
- /**
713
- * Create many InvitationCodes.
714
- * @param {InvitationCodeCreateManyArgs} args - Arguments to create many InvitationCodes.
715
- * @example
716
- * // Create many InvitationCodes
717
- * const invitationCode = await prisma.invitationCode.createMany({
718
- * data: [
719
- * // ... provide data here
720
- * ]
721
- * })
722
- *
723
- */
724
- createMany<T extends InvitationCodeCreateManyArgs>(args?: Prisma.SelectSubset<T, InvitationCodeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
725
-
726
- /**
727
- * Create many InvitationCodes and returns the data saved in the database.
728
- * @param {InvitationCodeCreateManyAndReturnArgs} args - Arguments to create many InvitationCodes.
729
- * @example
730
- * // Create many InvitationCodes
731
- * const invitationCode = await prisma.invitationCode.createManyAndReturn({
732
- * data: [
733
- * // ... provide data here
734
- * ]
735
- * })
736
- *
737
- * // Create many InvitationCodes and only return the `id`
738
- * const invitationCodeWithIdOnly = await prisma.invitationCode.createManyAndReturn({
739
- * select: { id: true },
740
- * data: [
741
- * // ... provide data here
742
- * ]
743
- * })
744
- * Note, that providing `undefined` is treated as the value not being there.
745
- * Read more here: https://pris.ly/d/null-undefined
746
- *
747
- */
748
- createManyAndReturn<T extends InvitationCodeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, InvitationCodeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
749
-
750
- /**
751
- * Delete a InvitationCode.
752
- * @param {InvitationCodeDeleteArgs} args - Arguments to delete one InvitationCode.
753
- * @example
754
- * // Delete one InvitationCode
755
- * const InvitationCode = await prisma.invitationCode.delete({
756
- * where: {
757
- * // ... filter to delete one InvitationCode
758
- * }
759
- * })
760
- *
761
- */
762
- delete<T extends InvitationCodeDeleteArgs>(args: Prisma.SelectSubset<T, InvitationCodeDeleteArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
763
-
764
- /**
765
- * Update one InvitationCode.
766
- * @param {InvitationCodeUpdateArgs} args - Arguments to update one InvitationCode.
767
- * @example
768
- * // Update one InvitationCode
769
- * const invitationCode = await prisma.invitationCode.update({
770
- * where: {
771
- * // ... provide filter here
772
- * },
773
- * data: {
774
- * // ... provide data here
775
- * }
776
- * })
777
- *
778
- */
779
- update<T extends InvitationCodeUpdateArgs>(args: Prisma.SelectSubset<T, InvitationCodeUpdateArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
780
-
781
- /**
782
- * Delete zero or more InvitationCodes.
783
- * @param {InvitationCodeDeleteManyArgs} args - Arguments to filter InvitationCodes to delete.
784
- * @example
785
- * // Delete a few InvitationCodes
786
- * const { count } = await prisma.invitationCode.deleteMany({
787
- * where: {
788
- * // ... provide filter here
789
- * }
790
- * })
791
- *
792
- */
793
- deleteMany<T extends InvitationCodeDeleteManyArgs>(args?: Prisma.SelectSubset<T, InvitationCodeDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
794
-
795
- /**
796
- * Update zero or more InvitationCodes.
797
- * Note, that providing `undefined` is treated as the value not being there.
798
- * Read more here: https://pris.ly/d/null-undefined
799
- * @param {InvitationCodeUpdateManyArgs} args - Arguments to update one or more rows.
800
- * @example
801
- * // Update many InvitationCodes
802
- * const invitationCode = await prisma.invitationCode.updateMany({
803
- * where: {
804
- * // ... provide filter here
805
- * },
806
- * data: {
807
- * // ... provide data here
808
- * }
809
- * })
810
- *
811
- */
812
- updateMany<T extends InvitationCodeUpdateManyArgs>(args: Prisma.SelectSubset<T, InvitationCodeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
813
-
814
- /**
815
- * Update zero or more InvitationCodes and returns the data updated in the database.
816
- * @param {InvitationCodeUpdateManyAndReturnArgs} args - Arguments to update many InvitationCodes.
817
- * @example
818
- * // Update many InvitationCodes
819
- * const invitationCode = await prisma.invitationCode.updateManyAndReturn({
820
- * where: {
821
- * // ... provide filter here
822
- * },
823
- * data: [
824
- * // ... provide data here
825
- * ]
826
- * })
827
- *
828
- * // Update zero or more InvitationCodes and only return the `id`
829
- * const invitationCodeWithIdOnly = await prisma.invitationCode.updateManyAndReturn({
830
- * select: { id: true },
831
- * where: {
832
- * // ... provide filter here
833
- * },
834
- * data: [
835
- * // ... provide data here
836
- * ]
837
- * })
838
- * Note, that providing `undefined` is treated as the value not being there.
839
- * Read more here: https://pris.ly/d/null-undefined
840
- *
841
- */
842
- updateManyAndReturn<T extends InvitationCodeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, InvitationCodeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
843
-
844
- /**
845
- * Create or update one InvitationCode.
846
- * @param {InvitationCodeUpsertArgs} args - Arguments to update or create a InvitationCode.
847
- * @example
848
- * // Update or create a InvitationCode
849
- * const invitationCode = await prisma.invitationCode.upsert({
850
- * create: {
851
- * // ... data to create a InvitationCode
852
- * },
853
- * update: {
854
- * // ... in case it already exists, update
855
- * },
856
- * where: {
857
- * // ... the filter for the InvitationCode we want to update
858
- * }
859
- * })
860
- */
861
- upsert<T extends InvitationCodeUpsertArgs>(args: Prisma.SelectSubset<T, InvitationCodeUpsertArgs<ExtArgs>>): Prisma.Prisma__InvitationCodeClient<runtime.Types.Result.GetResult<Prisma.$InvitationCodePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
862
-
863
-
864
- /**
865
- * Count the number of InvitationCodes.
866
- * Note, that providing `undefined` is treated as the value not being there.
867
- * Read more here: https://pris.ly/d/null-undefined
868
- * @param {InvitationCodeCountArgs} args - Arguments to filter InvitationCodes to count.
869
- * @example
870
- * // Count the number of InvitationCodes
871
- * const count = await prisma.invitationCode.count({
872
- * where: {
873
- * // ... the filter for the InvitationCodes we want to count
874
- * }
875
- * })
876
- **/
877
- count<T extends InvitationCodeCountArgs>(
878
- args?: Prisma.Subset<T, InvitationCodeCountArgs>,
879
- ): Prisma.PrismaPromise<
880
- T extends runtime.Types.Utils.Record<'select', any>
881
- ? T['select'] extends true
882
- ? number
883
- : Prisma.GetScalarType<T['select'], InvitationCodeCountAggregateOutputType>
884
- : number
885
- >
886
-
887
- /**
888
- * Allows you to perform aggregations operations on a InvitationCode.
889
- * Note, that providing `undefined` is treated as the value not being there.
890
- * Read more here: https://pris.ly/d/null-undefined
891
- * @param {InvitationCodeAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
892
- * @example
893
- * // Ordered by age ascending
894
- * // Where email contains prisma.io
895
- * // Limited to the 10 users
896
- * const aggregations = await prisma.user.aggregate({
897
- * _avg: {
898
- * age: true,
899
- * },
900
- * where: {
901
- * email: {
902
- * contains: "prisma.io",
903
- * },
904
- * },
905
- * orderBy: {
906
- * age: "asc",
907
- * },
908
- * take: 10,
909
- * })
910
- **/
911
- aggregate<T extends InvitationCodeAggregateArgs>(args: Prisma.Subset<T, InvitationCodeAggregateArgs>): Prisma.PrismaPromise<GetInvitationCodeAggregateType<T>>
912
-
913
- /**
914
- * Group by InvitationCode.
915
- * Note, that providing `undefined` is treated as the value not being there.
916
- * Read more here: https://pris.ly/d/null-undefined
917
- * @param {InvitationCodeGroupByArgs} args - Group by arguments.
918
- * @example
919
- * // Group by city, order by createdAt, get count
920
- * const result = await prisma.user.groupBy({
921
- * by: ['city', 'createdAt'],
922
- * orderBy: {
923
- * createdAt: true
924
- * },
925
- * _count: {
926
- * _all: true
927
- * },
928
- * })
929
- *
930
- **/
931
- groupBy<
932
- T extends InvitationCodeGroupByArgs,
933
- HasSelectOrTake extends Prisma.Or<
934
- Prisma.Extends<'skip', Prisma.Keys<T>>,
935
- Prisma.Extends<'take', Prisma.Keys<T>>
936
- >,
937
- OrderByArg extends Prisma.True extends HasSelectOrTake
938
- ? { orderBy: InvitationCodeGroupByArgs['orderBy'] }
939
- : { orderBy?: InvitationCodeGroupByArgs['orderBy'] },
940
- OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
941
- ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
942
- ByValid extends Prisma.Has<ByFields, OrderFields>,
943
- HavingFields extends Prisma.GetHavingFields<T['having']>,
944
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
945
- ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
946
- InputErrors extends ByEmpty extends Prisma.True
947
- ? `Error: "by" must not be empty.`
948
- : HavingValid extends Prisma.False
949
- ? {
950
- [P in HavingFields]: P extends ByFields
951
- ? never
952
- : P extends string
953
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
954
- : [
955
- Error,
956
- 'Field ',
957
- P,
958
- ` in "having" needs to be provided in "by"`,
959
- ]
960
- }[HavingFields]
961
- : 'take' extends Prisma.Keys<T>
962
- ? 'orderBy' extends Prisma.Keys<T>
963
- ? ByValid extends Prisma.True
964
- ? {}
965
- : {
966
- [P in OrderFields]: P extends ByFields
967
- ? never
968
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
969
- }[OrderFields]
970
- : 'Error: If you provide "take", you also need to provide "orderBy"'
971
- : 'skip' extends Prisma.Keys<T>
972
- ? 'orderBy' extends Prisma.Keys<T>
973
- ? ByValid extends Prisma.True
974
- ? {}
975
- : {
976
- [P in OrderFields]: P extends ByFields
977
- ? never
978
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
979
- }[OrderFields]
980
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
981
- : ByValid extends Prisma.True
982
- ? {}
983
- : {
984
- [P in OrderFields]: P extends ByFields
985
- ? never
986
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
987
- }[OrderFields]
988
- >(args: Prisma.SubsetIntersection<T, InvitationCodeGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetInvitationCodeGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
989
- /**
990
- * Fields of the InvitationCode model
991
- */
992
- readonly fields: InvitationCodeFieldRefs;
993
- }
994
-
995
- /**
996
- * The delegate class that acts as a "Promise-like" for InvitationCode.
997
- * Why is this prefixed with `Prisma__`?
998
- * Because we want to prevent naming conflicts as mentioned in
999
- * https://github.com/prisma/prisma-client-js/issues/707
1000
- */
1001
- export interface Prisma__InvitationCodeClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1002
- readonly [Symbol.toStringTag]: "PrismaPromise"
1003
- uses<T extends Prisma.InvitationCode$usesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.InvitationCode$usesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvitationUsePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1004
- /**
1005
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1006
- * @param onfulfilled The callback to execute when the Promise is resolved.
1007
- * @param onrejected The callback to execute when the Promise is rejected.
1008
- * @returns A Promise for the completion of which ever callback is executed.
1009
- */
1010
- 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>
1011
- /**
1012
- * Attaches a callback for only the rejection of the Promise.
1013
- * @param onrejected The callback to execute when the Promise is rejected.
1014
- * @returns A Promise for the completion of the callback.
1015
- */
1016
- catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1017
- /**
1018
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1019
- * resolved value cannot be modified from the callback.
1020
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1021
- * @returns A Promise for the completion of the callback.
1022
- */
1023
- finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1024
- }
1025
-
1026
-
1027
-
1028
-
1029
- /**
1030
- * Fields of the InvitationCode model
1031
- */
1032
- export interface InvitationCodeFieldRefs {
1033
- readonly id: Prisma.FieldRef<"InvitationCode", 'String'>
1034
- readonly code: Prisma.FieldRef<"InvitationCode", 'String'>
1035
- readonly maxUses: Prisma.FieldRef<"InvitationCode", 'Int'>
1036
- readonly usedCount: Prisma.FieldRef<"InvitationCode", 'Int'>
1037
- readonly expiresAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
1038
- readonly createdAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
1039
- readonly createdById: Prisma.FieldRef<"InvitationCode", 'String'>
1040
- readonly disabledAt: Prisma.FieldRef<"InvitationCode", 'DateTime'>
1041
- }
1042
-
1043
-
1044
- // Custom InputTypes
1045
- /**
1046
- * InvitationCode findUnique
1047
- */
1048
- export type InvitationCodeFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
- /**
1050
- * Select specific fields to fetch from the InvitationCode
1051
- */
1052
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1053
- /**
1054
- * Omit specific fields from the InvitationCode
1055
- */
1056
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1057
- /**
1058
- * Choose, which related nodes to fetch as well
1059
- */
1060
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1061
- /**
1062
- * Filter, which InvitationCode to fetch.
1063
- */
1064
- where: Prisma.InvitationCodeWhereUniqueInput
1065
- }
1066
-
1067
- /**
1068
- * InvitationCode findUniqueOrThrow
1069
- */
1070
- export type InvitationCodeFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
- /**
1072
- * Select specific fields to fetch from the InvitationCode
1073
- */
1074
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1075
- /**
1076
- * Omit specific fields from the InvitationCode
1077
- */
1078
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1079
- /**
1080
- * Choose, which related nodes to fetch as well
1081
- */
1082
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1083
- /**
1084
- * Filter, which InvitationCode to fetch.
1085
- */
1086
- where: Prisma.InvitationCodeWhereUniqueInput
1087
- }
1088
-
1089
- /**
1090
- * InvitationCode findFirst
1091
- */
1092
- export type InvitationCodeFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1093
- /**
1094
- * Select specific fields to fetch from the InvitationCode
1095
- */
1096
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1097
- /**
1098
- * Omit specific fields from the InvitationCode
1099
- */
1100
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1101
- /**
1102
- * Choose, which related nodes to fetch as well
1103
- */
1104
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1105
- /**
1106
- * Filter, which InvitationCode to fetch.
1107
- */
1108
- where?: Prisma.InvitationCodeWhereInput
1109
- /**
1110
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1111
- *
1112
- * Determine the order of InvitationCodes to fetch.
1113
- */
1114
- orderBy?: Prisma.InvitationCodeOrderByWithRelationInput | Prisma.InvitationCodeOrderByWithRelationInput[]
1115
- /**
1116
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1117
- *
1118
- * Sets the position for searching for InvitationCodes.
1119
- */
1120
- cursor?: Prisma.InvitationCodeWhereUniqueInput
1121
- /**
1122
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1123
- *
1124
- * Take `±n` InvitationCodes from the position of the cursor.
1125
- */
1126
- take?: number
1127
- /**
1128
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1129
- *
1130
- * Skip the first `n` InvitationCodes.
1131
- */
1132
- skip?: number
1133
- /**
1134
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1135
- *
1136
- * Filter by unique combinations of InvitationCodes.
1137
- */
1138
- distinct?: Prisma.InvitationCodeScalarFieldEnum | Prisma.InvitationCodeScalarFieldEnum[]
1139
- }
1140
-
1141
- /**
1142
- * InvitationCode findFirstOrThrow
1143
- */
1144
- export type InvitationCodeFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1145
- /**
1146
- * Select specific fields to fetch from the InvitationCode
1147
- */
1148
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1149
- /**
1150
- * Omit specific fields from the InvitationCode
1151
- */
1152
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1153
- /**
1154
- * Choose, which related nodes to fetch as well
1155
- */
1156
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1157
- /**
1158
- * Filter, which InvitationCode to fetch.
1159
- */
1160
- where?: Prisma.InvitationCodeWhereInput
1161
- /**
1162
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1163
- *
1164
- * Determine the order of InvitationCodes to fetch.
1165
- */
1166
- orderBy?: Prisma.InvitationCodeOrderByWithRelationInput | Prisma.InvitationCodeOrderByWithRelationInput[]
1167
- /**
1168
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1169
- *
1170
- * Sets the position for searching for InvitationCodes.
1171
- */
1172
- cursor?: Prisma.InvitationCodeWhereUniqueInput
1173
- /**
1174
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1175
- *
1176
- * Take `±n` InvitationCodes from the position of the cursor.
1177
- */
1178
- take?: number
1179
- /**
1180
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1181
- *
1182
- * Skip the first `n` InvitationCodes.
1183
- */
1184
- skip?: number
1185
- /**
1186
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1187
- *
1188
- * Filter by unique combinations of InvitationCodes.
1189
- */
1190
- distinct?: Prisma.InvitationCodeScalarFieldEnum | Prisma.InvitationCodeScalarFieldEnum[]
1191
- }
1192
-
1193
- /**
1194
- * InvitationCode findMany
1195
- */
1196
- export type InvitationCodeFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1197
- /**
1198
- * Select specific fields to fetch from the InvitationCode
1199
- */
1200
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1201
- /**
1202
- * Omit specific fields from the InvitationCode
1203
- */
1204
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1205
- /**
1206
- * Choose, which related nodes to fetch as well
1207
- */
1208
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1209
- /**
1210
- * Filter, which InvitationCodes to fetch.
1211
- */
1212
- where?: Prisma.InvitationCodeWhereInput
1213
- /**
1214
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1215
- *
1216
- * Determine the order of InvitationCodes to fetch.
1217
- */
1218
- orderBy?: Prisma.InvitationCodeOrderByWithRelationInput | Prisma.InvitationCodeOrderByWithRelationInput[]
1219
- /**
1220
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1221
- *
1222
- * Sets the position for listing InvitationCodes.
1223
- */
1224
- cursor?: Prisma.InvitationCodeWhereUniqueInput
1225
- /**
1226
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1227
- *
1228
- * Take `±n` InvitationCodes from the position of the cursor.
1229
- */
1230
- take?: number
1231
- /**
1232
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1233
- *
1234
- * Skip the first `n` InvitationCodes.
1235
- */
1236
- skip?: number
1237
- /**
1238
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1239
- *
1240
- * Filter by unique combinations of InvitationCodes.
1241
- */
1242
- distinct?: Prisma.InvitationCodeScalarFieldEnum | Prisma.InvitationCodeScalarFieldEnum[]
1243
- }
1244
-
1245
- /**
1246
- * InvitationCode create
1247
- */
1248
- export type InvitationCodeCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1249
- /**
1250
- * Select specific fields to fetch from the InvitationCode
1251
- */
1252
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1253
- /**
1254
- * Omit specific fields from the InvitationCode
1255
- */
1256
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1257
- /**
1258
- * Choose, which related nodes to fetch as well
1259
- */
1260
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1261
- /**
1262
- * The data needed to create a InvitationCode.
1263
- */
1264
- data: Prisma.XOR<Prisma.InvitationCodeCreateInput, Prisma.InvitationCodeUncheckedCreateInput>
1265
- }
1266
-
1267
- /**
1268
- * InvitationCode createMany
1269
- */
1270
- export type InvitationCodeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1271
- /**
1272
- * The data used to create many InvitationCodes.
1273
- */
1274
- data: Prisma.InvitationCodeCreateManyInput | Prisma.InvitationCodeCreateManyInput[]
1275
- }
1276
-
1277
- /**
1278
- * InvitationCode createManyAndReturn
1279
- */
1280
- export type InvitationCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1281
- /**
1282
- * Select specific fields to fetch from the InvitationCode
1283
- */
1284
- select?: Prisma.InvitationCodeSelectCreateManyAndReturn<ExtArgs> | null
1285
- /**
1286
- * Omit specific fields from the InvitationCode
1287
- */
1288
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1289
- /**
1290
- * The data used to create many InvitationCodes.
1291
- */
1292
- data: Prisma.InvitationCodeCreateManyInput | Prisma.InvitationCodeCreateManyInput[]
1293
- }
1294
-
1295
- /**
1296
- * InvitationCode update
1297
- */
1298
- export type InvitationCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1299
- /**
1300
- * Select specific fields to fetch from the InvitationCode
1301
- */
1302
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1303
- /**
1304
- * Omit specific fields from the InvitationCode
1305
- */
1306
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1307
- /**
1308
- * Choose, which related nodes to fetch as well
1309
- */
1310
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1311
- /**
1312
- * The data needed to update a InvitationCode.
1313
- */
1314
- data: Prisma.XOR<Prisma.InvitationCodeUpdateInput, Prisma.InvitationCodeUncheckedUpdateInput>
1315
- /**
1316
- * Choose, which InvitationCode to update.
1317
- */
1318
- where: Prisma.InvitationCodeWhereUniqueInput
1319
- }
1320
-
1321
- /**
1322
- * InvitationCode updateMany
1323
- */
1324
- export type InvitationCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1325
- /**
1326
- * The data used to update InvitationCodes.
1327
- */
1328
- data: Prisma.XOR<Prisma.InvitationCodeUpdateManyMutationInput, Prisma.InvitationCodeUncheckedUpdateManyInput>
1329
- /**
1330
- * Filter which InvitationCodes to update
1331
- */
1332
- where?: Prisma.InvitationCodeWhereInput
1333
- /**
1334
- * Limit how many InvitationCodes to update.
1335
- */
1336
- limit?: number
1337
- }
1338
-
1339
- /**
1340
- * InvitationCode updateManyAndReturn
1341
- */
1342
- export type InvitationCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1343
- /**
1344
- * Select specific fields to fetch from the InvitationCode
1345
- */
1346
- select?: Prisma.InvitationCodeSelectUpdateManyAndReturn<ExtArgs> | null
1347
- /**
1348
- * Omit specific fields from the InvitationCode
1349
- */
1350
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1351
- /**
1352
- * The data used to update InvitationCodes.
1353
- */
1354
- data: Prisma.XOR<Prisma.InvitationCodeUpdateManyMutationInput, Prisma.InvitationCodeUncheckedUpdateManyInput>
1355
- /**
1356
- * Filter which InvitationCodes to update
1357
- */
1358
- where?: Prisma.InvitationCodeWhereInput
1359
- /**
1360
- * Limit how many InvitationCodes to update.
1361
- */
1362
- limit?: number
1363
- }
1364
-
1365
- /**
1366
- * InvitationCode upsert
1367
- */
1368
- export type InvitationCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1369
- /**
1370
- * Select specific fields to fetch from the InvitationCode
1371
- */
1372
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1373
- /**
1374
- * Omit specific fields from the InvitationCode
1375
- */
1376
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1377
- /**
1378
- * Choose, which related nodes to fetch as well
1379
- */
1380
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1381
- /**
1382
- * The filter to search for the InvitationCode to update in case it exists.
1383
- */
1384
- where: Prisma.InvitationCodeWhereUniqueInput
1385
- /**
1386
- * In case the InvitationCode found by the `where` argument doesn't exist, create a new InvitationCode with this data.
1387
- */
1388
- create: Prisma.XOR<Prisma.InvitationCodeCreateInput, Prisma.InvitationCodeUncheckedCreateInput>
1389
- /**
1390
- * In case the InvitationCode was found with the provided `where` argument, update it with this data.
1391
- */
1392
- update: Prisma.XOR<Prisma.InvitationCodeUpdateInput, Prisma.InvitationCodeUncheckedUpdateInput>
1393
- }
1394
-
1395
- /**
1396
- * InvitationCode delete
1397
- */
1398
- export type InvitationCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1399
- /**
1400
- * Select specific fields to fetch from the InvitationCode
1401
- */
1402
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1403
- /**
1404
- * Omit specific fields from the InvitationCode
1405
- */
1406
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1407
- /**
1408
- * Choose, which related nodes to fetch as well
1409
- */
1410
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1411
- /**
1412
- * Filter which InvitationCode to delete.
1413
- */
1414
- where: Prisma.InvitationCodeWhereUniqueInput
1415
- }
1416
-
1417
- /**
1418
- * InvitationCode deleteMany
1419
- */
1420
- export type InvitationCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
- /**
1422
- * Filter which InvitationCodes to delete
1423
- */
1424
- where?: Prisma.InvitationCodeWhereInput
1425
- /**
1426
- * Limit how many InvitationCodes to delete.
1427
- */
1428
- limit?: number
1429
- }
1430
-
1431
- /**
1432
- * InvitationCode.uses
1433
- */
1434
- export type InvitationCode$usesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1435
- /**
1436
- * Select specific fields to fetch from the InvitationUse
1437
- */
1438
- select?: Prisma.InvitationUseSelect<ExtArgs> | null
1439
- /**
1440
- * Omit specific fields from the InvitationUse
1441
- */
1442
- omit?: Prisma.InvitationUseOmit<ExtArgs> | null
1443
- /**
1444
- * Choose, which related nodes to fetch as well
1445
- */
1446
- include?: Prisma.InvitationUseInclude<ExtArgs> | null
1447
- where?: Prisma.InvitationUseWhereInput
1448
- orderBy?: Prisma.InvitationUseOrderByWithRelationInput | Prisma.InvitationUseOrderByWithRelationInput[]
1449
- cursor?: Prisma.InvitationUseWhereUniqueInput
1450
- take?: number
1451
- skip?: number
1452
- distinct?: Prisma.InvitationUseScalarFieldEnum | Prisma.InvitationUseScalarFieldEnum[]
1453
- }
1454
-
1455
- /**
1456
- * InvitationCode without action
1457
- */
1458
- export type InvitationCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1459
- /**
1460
- * Select specific fields to fetch from the InvitationCode
1461
- */
1462
- select?: Prisma.InvitationCodeSelect<ExtArgs> | null
1463
- /**
1464
- * Omit specific fields from the InvitationCode
1465
- */
1466
- omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
1467
- /**
1468
- * Choose, which related nodes to fetch as well
1469
- */
1470
- include?: Prisma.InvitationCodeInclude<ExtArgs> | null
1471
- }