@allbluecn/database 0.4.0 → 0.4.2
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.
- package/desktop-init.ts +128 -0
- package/generated/browser.ts +494 -0
- package/generated/client.ts +518 -0
- package/generated/commonInputTypes.ts +1056 -0
- package/generated/enums.ts +93 -0
- package/generated/internal/class.ts +1144 -0
- package/generated/internal/prismaNamespace.ts +9603 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
- package/generated/models/Account.ts +1648 -0
- package/generated/models/AgentConversation.ts +1651 -0
- package/generated/models/AgentMessage.ts +1409 -0
- package/generated/models/AiProvider.ts +1607 -0
- package/generated/models/AiProviderConfig.ts +1514 -0
- package/generated/models/AiUsageLog.ts +1863 -0
- package/generated/models/AnyHubApp.ts +1911 -0
- package/generated/models/AnyHubMarketApp.ts +2008 -0
- package/generated/models/AnyHubPermission.ts +1422 -0
- package/generated/models/AnyHubRecommendation.ts +1870 -0
- package/generated/models/AnyHubRecommender.ts +1471 -0
- package/generated/models/Artboard.ts +1811 -0
- package/generated/models/ArtboardExport.ts +1548 -0
- package/generated/models/ArticleFavorite.ts +1352 -0
- package/generated/models/AuditLog.ts +1533 -0
- package/generated/models/Block.ts +1650 -0
- package/generated/models/BlockComponent.ts +1734 -0
- package/generated/models/BlockInstance.ts +2043 -0
- package/generated/models/BookmarkCategory.ts +1670 -0
- package/generated/models/ChatInterrupt.ts +1699 -0
- package/generated/models/ChatMessage.ts +1438 -0
- package/generated/models/ChatRun.ts +1632 -0
- package/generated/models/ChatThread.ts +2133 -0
- package/generated/models/Comment.ts +2206 -0
- package/generated/models/CommentIgnore.ts +1430 -0
- package/generated/models/CommentReaction.ts +1472 -0
- package/generated/models/ComplianceExport.ts +1345 -0
- package/generated/models/Component.ts +2345 -0
- package/generated/models/ComponentInstance.ts +2102 -0
- package/generated/models/ComponentTag.ts +1281 -0
- package/generated/models/CustomRole.ts +1560 -0
- package/generated/models/DesignProject.ts +1643 -0
- package/generated/models/DictionaryTerm.ts +1642 -0
- package/generated/models/GenerationRun.ts +1543 -0
- package/generated/models/IndustryCompliance.ts +1797 -0
- package/generated/models/InvitationCode.ts +1417 -0
- package/generated/models/InvitationUse.ts +1424 -0
- package/generated/models/Invoice.ts +1710 -0
- package/generated/models/KnowledgeBase.ts +1671 -0
- package/generated/models/KnowledgeDocument.ts +2458 -0
- package/generated/models/KnowledgeShareRecord.ts +1352 -0
- package/generated/models/Label.ts +1482 -0
- package/generated/models/LegalRegulation.ts +1873 -0
- package/generated/models/LicenseActivation.ts +1415 -0
- package/generated/models/LicenseKey.ts +1884 -0
- package/generated/models/LoginLog.ts +1450 -0
- package/generated/models/MonitoringErrorReport.ts +1299 -0
- package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
- package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
- package/generated/models/MonitoringRequestLog.ts +1283 -0
- package/generated/models/PRD.ts +2805 -0
- package/generated/models/PRDPage.ts +2402 -0
- package/generated/models/PRDTag.ts +1430 -0
- package/generated/models/PRDVersion.ts +2121 -0
- package/generated/models/PageVersion.ts +1523 -0
- package/generated/models/PasswordResetToken.ts +1380 -0
- package/generated/models/Plan.ts +2069 -0
- package/generated/models/Project.ts +2148 -0
- package/generated/models/ProjectActivity.ts +1582 -0
- package/generated/models/ProjectMember.ts +1512 -0
- package/generated/models/ProviderEvent.ts +1227 -0
- package/generated/models/Reference.ts +1177 -0
- package/generated/models/Review.ts +1912 -0
- package/generated/models/ReviewComment.ts +1904 -0
- package/generated/models/RoleAssignment.ts +1430 -0
- package/generated/models/SequenceCounter.ts +1137 -0
- package/generated/models/Share.ts +1681 -0
- package/generated/models/ShareVersion.ts +1389 -0
- package/generated/models/SsoMapping.ts +1512 -0
- package/generated/models/SsoProvider.ts +1639 -0
- package/generated/models/Story.ts +5234 -0
- package/generated/models/StoryActivity.ts +1664 -0
- package/generated/models/StoryAttachment.ts +1467 -0
- package/generated/models/StoryComment.ts +1992 -0
- package/generated/models/StoryDependency.ts +1517 -0
- package/generated/models/StoryDocLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +1587 -0
- package/generated/models/StoryLabel.ts +1349 -0
- package/generated/models/StoryLink.ts +1415 -0
- package/generated/models/StoryPrdLink.ts +1430 -0
- package/generated/models/StoryReaction.ts +1472 -0
- package/generated/models/Subscription.ts +2147 -0
- package/generated/models/SystemSetting.ts +1217 -0
- package/generated/models/Tag.ts +1655 -0
- package/generated/models/TeamInvitation.ts +1526 -0
- package/generated/models/TeamMembership.ts +1436 -0
- package/generated/models/Template.ts +1391 -0
- package/generated/models/TemplateBlock.ts +1664 -0
- package/generated/models/ThirdPartyDependency.ts +1473 -0
- package/generated/models/UsageRecord.ts +1505 -0
- package/generated/models/User.ts +20998 -0
- package/generated/models/UserAgent.ts +1900 -0
- package/generated/models/UserSkill.ts +1456 -0
- package/generated/models/WebsiteBookmark.ts +2219 -0
- package/generated/models/Workspace.ts +2279 -0
- package/generated/models.ts +106 -0
- package/generated-sqlite/browser.ts +399 -0
- package/generated-sqlite/client.ts +423 -0
- package/generated-sqlite/commonInputTypes.ts +608 -0
- package/generated-sqlite/enums.ts +15 -0
- package/generated-sqlite/internal/class.ts +954 -0
- package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
- package/generated-sqlite/models/AgentConversation.ts +1647 -0
- package/generated-sqlite/models/AgentMessage.ts +1406 -0
- package/generated-sqlite/models/AiProvider.ts +1605 -0
- package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
- package/generated-sqlite/models/AiUsageLog.ts +1845 -0
- package/generated-sqlite/models/AnyHubApp.ts +1908 -0
- package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
- package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
- package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
- package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
- package/generated-sqlite/models/Artboard.ts +1808 -0
- package/generated-sqlite/models/ArtboardExport.ts +1545 -0
- package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
- package/generated-sqlite/models/AuditLog.ts +1287 -0
- package/generated-sqlite/models/Block.ts +1648 -0
- package/generated-sqlite/models/BlockComponent.ts +1730 -0
- package/generated-sqlite/models/BlockInstance.ts +2039 -0
- package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
- package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
- package/generated-sqlite/models/ChatMessage.ts +1435 -0
- package/generated-sqlite/models/ChatRun.ts +1629 -0
- package/generated-sqlite/models/ChatThread.ts +2129 -0
- package/generated-sqlite/models/Comment.ts +2201 -0
- package/generated-sqlite/models/CommentIgnore.ts +1426 -0
- package/generated-sqlite/models/ComplianceExport.ts +1343 -0
- package/generated-sqlite/models/Component.ts +2326 -0
- package/generated-sqlite/models/ComponentInstance.ts +2097 -0
- package/generated-sqlite/models/ComponentTag.ts +1278 -0
- package/generated-sqlite/models/CustomRole.ts +1209 -0
- package/generated-sqlite/models/DesignProject.ts +1640 -0
- package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
- package/generated-sqlite/models/GenerationRun.ts +1540 -0
- package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
- package/generated-sqlite/models/InvitationCode.ts +1415 -0
- package/generated-sqlite/models/InvitationUse.ts +1420 -0
- package/generated-sqlite/models/Invoice.ts +1707 -0
- package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
- package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
- package/generated-sqlite/models/LegalRegulation.ts +1870 -0
- package/generated-sqlite/models/LicenseActivation.ts +1203 -0
- package/generated-sqlite/models/LicenseKey.ts +1443 -0
- package/generated-sqlite/models/LoginLog.ts +1447 -0
- package/generated-sqlite/models/PRD.ts +2616 -0
- package/generated-sqlite/models/PRDPage.ts +2398 -0
- package/generated-sqlite/models/PRDTag.ts +1426 -0
- package/generated-sqlite/models/PRDVersion.ts +2117 -0
- package/generated-sqlite/models/PageVersion.ts +1528 -0
- package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
- package/generated-sqlite/models/Plan.ts +2060 -0
- package/generated-sqlite/models/Project.ts +1994 -0
- package/generated-sqlite/models/ProjectActivity.ts +1578 -0
- package/generated-sqlite/models/ProjectMember.ts +1508 -0
- package/generated-sqlite/models/ProviderEvent.ts +1225 -0
- package/generated-sqlite/models/Reference.ts +1175 -0
- package/generated-sqlite/models/Review.ts +1903 -0
- package/generated-sqlite/models/ReviewComment.ts +1899 -0
- package/generated-sqlite/models/RoleAssignment.ts +1125 -0
- package/generated-sqlite/models/Share.ts +1674 -0
- package/generated-sqlite/models/ShareVersion.ts +1385 -0
- package/generated-sqlite/models/SsoMapping.ts +1181 -0
- package/generated-sqlite/models/SsoProvider.ts +1266 -0
- package/generated-sqlite/models/Subscription.ts +2137 -0
- package/generated-sqlite/models/SystemSetting.ts +1215 -0
- package/generated-sqlite/models/Tag.ts +1652 -0
- package/generated-sqlite/models/TeamInvitation.ts +1523 -0
- package/generated-sqlite/models/TeamMembership.ts +1433 -0
- package/generated-sqlite/models/Template.ts +1389 -0
- package/generated-sqlite/models/TemplateBlock.ts +1660 -0
- package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
- package/generated-sqlite/models/UsageRecord.ts +1498 -0
- package/generated-sqlite/models/User.ts +13558 -0
- package/generated-sqlite/models/UserAgent.ts +1897 -0
- package/generated-sqlite/models/UserSkill.ts +1453 -0
- package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
- package/generated-sqlite/models/Workspace.ts +1824 -0
- package/generated-sqlite/models.ts +87 -0
- package/package.json +7 -3
- package/LICENSE +0 -661
|
@@ -0,0 +1,1415 @@
|
|
|
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
|
+
}
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* InvitationCode createManyAndReturn
|
|
1223
|
+
*/
|
|
1224
|
+
export type InvitationCodeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1225
|
+
/**
|
|
1226
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1227
|
+
*/
|
|
1228
|
+
select?: Prisma.InvitationCodeSelectCreateManyAndReturn<ExtArgs> | null
|
|
1229
|
+
/**
|
|
1230
|
+
* Omit specific fields from the InvitationCode
|
|
1231
|
+
*/
|
|
1232
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1233
|
+
/**
|
|
1234
|
+
* The data used to create many InvitationCodes.
|
|
1235
|
+
*/
|
|
1236
|
+
data: Prisma.InvitationCodeCreateManyInput | Prisma.InvitationCodeCreateManyInput[]
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* InvitationCode update
|
|
1241
|
+
*/
|
|
1242
|
+
export type InvitationCodeUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1245
|
+
*/
|
|
1246
|
+
select?: Prisma.InvitationCodeSelect<ExtArgs> | null
|
|
1247
|
+
/**
|
|
1248
|
+
* Omit specific fields from the InvitationCode
|
|
1249
|
+
*/
|
|
1250
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1251
|
+
/**
|
|
1252
|
+
* Choose, which related nodes to fetch as well
|
|
1253
|
+
*/
|
|
1254
|
+
include?: Prisma.InvitationCodeInclude<ExtArgs> | null
|
|
1255
|
+
/**
|
|
1256
|
+
* The data needed to update a InvitationCode.
|
|
1257
|
+
*/
|
|
1258
|
+
data: Prisma.XOR<Prisma.InvitationCodeUpdateInput, Prisma.InvitationCodeUncheckedUpdateInput>
|
|
1259
|
+
/**
|
|
1260
|
+
* Choose, which InvitationCode to update.
|
|
1261
|
+
*/
|
|
1262
|
+
where: Prisma.InvitationCodeWhereUniqueInput
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
/**
|
|
1266
|
+
* InvitationCode updateMany
|
|
1267
|
+
*/
|
|
1268
|
+
export type InvitationCodeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1269
|
+
/**
|
|
1270
|
+
* The data used to update InvitationCodes.
|
|
1271
|
+
*/
|
|
1272
|
+
data: Prisma.XOR<Prisma.InvitationCodeUpdateManyMutationInput, Prisma.InvitationCodeUncheckedUpdateManyInput>
|
|
1273
|
+
/**
|
|
1274
|
+
* Filter which InvitationCodes to update
|
|
1275
|
+
*/
|
|
1276
|
+
where?: Prisma.InvitationCodeWhereInput
|
|
1277
|
+
/**
|
|
1278
|
+
* Limit how many InvitationCodes to update.
|
|
1279
|
+
*/
|
|
1280
|
+
limit?: number
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
/**
|
|
1284
|
+
* InvitationCode updateManyAndReturn
|
|
1285
|
+
*/
|
|
1286
|
+
export type InvitationCodeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1287
|
+
/**
|
|
1288
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1289
|
+
*/
|
|
1290
|
+
select?: Prisma.InvitationCodeSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1291
|
+
/**
|
|
1292
|
+
* Omit specific fields from the InvitationCode
|
|
1293
|
+
*/
|
|
1294
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1295
|
+
/**
|
|
1296
|
+
* The data used to update InvitationCodes.
|
|
1297
|
+
*/
|
|
1298
|
+
data: Prisma.XOR<Prisma.InvitationCodeUpdateManyMutationInput, Prisma.InvitationCodeUncheckedUpdateManyInput>
|
|
1299
|
+
/**
|
|
1300
|
+
* Filter which InvitationCodes to update
|
|
1301
|
+
*/
|
|
1302
|
+
where?: Prisma.InvitationCodeWhereInput
|
|
1303
|
+
/**
|
|
1304
|
+
* Limit how many InvitationCodes to update.
|
|
1305
|
+
*/
|
|
1306
|
+
limit?: number
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* InvitationCode upsert
|
|
1311
|
+
*/
|
|
1312
|
+
export type InvitationCodeUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1313
|
+
/**
|
|
1314
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1315
|
+
*/
|
|
1316
|
+
select?: Prisma.InvitationCodeSelect<ExtArgs> | null
|
|
1317
|
+
/**
|
|
1318
|
+
* Omit specific fields from the InvitationCode
|
|
1319
|
+
*/
|
|
1320
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1321
|
+
/**
|
|
1322
|
+
* Choose, which related nodes to fetch as well
|
|
1323
|
+
*/
|
|
1324
|
+
include?: Prisma.InvitationCodeInclude<ExtArgs> | null
|
|
1325
|
+
/**
|
|
1326
|
+
* The filter to search for the InvitationCode to update in case it exists.
|
|
1327
|
+
*/
|
|
1328
|
+
where: Prisma.InvitationCodeWhereUniqueInput
|
|
1329
|
+
/**
|
|
1330
|
+
* In case the InvitationCode found by the `where` argument doesn't exist, create a new InvitationCode with this data.
|
|
1331
|
+
*/
|
|
1332
|
+
create: Prisma.XOR<Prisma.InvitationCodeCreateInput, Prisma.InvitationCodeUncheckedCreateInput>
|
|
1333
|
+
/**
|
|
1334
|
+
* In case the InvitationCode was found with the provided `where` argument, update it with this data.
|
|
1335
|
+
*/
|
|
1336
|
+
update: Prisma.XOR<Prisma.InvitationCodeUpdateInput, Prisma.InvitationCodeUncheckedUpdateInput>
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* InvitationCode delete
|
|
1341
|
+
*/
|
|
1342
|
+
export type InvitationCodeDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1343
|
+
/**
|
|
1344
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1345
|
+
*/
|
|
1346
|
+
select?: Prisma.InvitationCodeSelect<ExtArgs> | null
|
|
1347
|
+
/**
|
|
1348
|
+
* Omit specific fields from the InvitationCode
|
|
1349
|
+
*/
|
|
1350
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1351
|
+
/**
|
|
1352
|
+
* Choose, which related nodes to fetch as well
|
|
1353
|
+
*/
|
|
1354
|
+
include?: Prisma.InvitationCodeInclude<ExtArgs> | null
|
|
1355
|
+
/**
|
|
1356
|
+
* Filter which InvitationCode to delete.
|
|
1357
|
+
*/
|
|
1358
|
+
where: Prisma.InvitationCodeWhereUniqueInput
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* InvitationCode deleteMany
|
|
1363
|
+
*/
|
|
1364
|
+
export type InvitationCodeDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Filter which InvitationCodes to delete
|
|
1367
|
+
*/
|
|
1368
|
+
where?: Prisma.InvitationCodeWhereInput
|
|
1369
|
+
/**
|
|
1370
|
+
* Limit how many InvitationCodes to delete.
|
|
1371
|
+
*/
|
|
1372
|
+
limit?: number
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
/**
|
|
1376
|
+
* InvitationCode.uses
|
|
1377
|
+
*/
|
|
1378
|
+
export type InvitationCode$usesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1379
|
+
/**
|
|
1380
|
+
* Select specific fields to fetch from the InvitationUse
|
|
1381
|
+
*/
|
|
1382
|
+
select?: Prisma.InvitationUseSelect<ExtArgs> | null
|
|
1383
|
+
/**
|
|
1384
|
+
* Omit specific fields from the InvitationUse
|
|
1385
|
+
*/
|
|
1386
|
+
omit?: Prisma.InvitationUseOmit<ExtArgs> | null
|
|
1387
|
+
/**
|
|
1388
|
+
* Choose, which related nodes to fetch as well
|
|
1389
|
+
*/
|
|
1390
|
+
include?: Prisma.InvitationUseInclude<ExtArgs> | null
|
|
1391
|
+
where?: Prisma.InvitationUseWhereInput
|
|
1392
|
+
orderBy?: Prisma.InvitationUseOrderByWithRelationInput | Prisma.InvitationUseOrderByWithRelationInput[]
|
|
1393
|
+
cursor?: Prisma.InvitationUseWhereUniqueInput
|
|
1394
|
+
take?: number
|
|
1395
|
+
skip?: number
|
|
1396
|
+
distinct?: Prisma.InvitationUseScalarFieldEnum | Prisma.InvitationUseScalarFieldEnum[]
|
|
1397
|
+
}
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* InvitationCode without action
|
|
1401
|
+
*/
|
|
1402
|
+
export type InvitationCodeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1403
|
+
/**
|
|
1404
|
+
* Select specific fields to fetch from the InvitationCode
|
|
1405
|
+
*/
|
|
1406
|
+
select?: Prisma.InvitationCodeSelect<ExtArgs> | null
|
|
1407
|
+
/**
|
|
1408
|
+
* Omit specific fields from the InvitationCode
|
|
1409
|
+
*/
|
|
1410
|
+
omit?: Prisma.InvitationCodeOmit<ExtArgs> | null
|
|
1411
|
+
/**
|
|
1412
|
+
* Choose, which related nodes to fetch as well
|
|
1413
|
+
*/
|
|
1414
|
+
include?: Prisma.InvitationCodeInclude<ExtArgs> | null
|
|
1415
|
+
}
|