@allbluecn/database 0.3.14 → 0.4.1

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