@mars-stack/cli 0.2.0 → 1.0.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.
Files changed (175) hide show
  1. package/dist/index.js +137 -12
  2. package/dist/index.js.map +1 -1
  3. package/package.json +4 -3
  4. package/template/.cursor/rules/composition-patterns.mdc +186 -0
  5. package/template/.cursor/rules/data-access.mdc +29 -0
  6. package/template/.cursor/rules/project-structure.mdc +34 -0
  7. package/template/.cursor/rules/security.mdc +25 -0
  8. package/template/.cursor/rules/testing.mdc +24 -0
  9. package/template/.cursor/rules/ui-conventions.mdc +29 -0
  10. package/template/.cursor/skills/add-api-route/SKILL.md +122 -0
  11. package/template/.cursor/skills/add-audit-log/SKILL.md +375 -0
  12. package/template/.cursor/skills/add-blog/SKILL.md +447 -0
  13. package/template/.cursor/skills/add-command-palette/SKILL.md +438 -0
  14. package/template/.cursor/skills/add-component/SKILL.md +158 -0
  15. package/template/.cursor/skills/add-crud-routes/SKILL.md +221 -0
  16. package/template/.cursor/skills/add-e2e-test/SKILL.md +227 -0
  17. package/template/.cursor/skills/add-error-boundary/SKILL.md +472 -0
  18. package/template/.cursor/skills/add-feature/SKILL.md +174 -0
  19. package/template/.cursor/skills/add-middleware/SKILL.md +135 -0
  20. package/template/.cursor/skills/add-page/SKILL.md +151 -0
  21. package/template/.cursor/skills/add-prisma-model/SKILL.md +148 -0
  22. package/template/.cursor/skills/add-protected-resource/SKILL.md +192 -0
  23. package/template/.cursor/skills/add-role/SKILL.md +156 -0
  24. package/template/.cursor/skills/add-server-action/SKILL.md +167 -0
  25. package/template/.cursor/skills/add-webhook/SKILL.md +192 -0
  26. package/template/.cursor/skills/build-complete-feature/SKILL.md +227 -0
  27. package/template/.cursor/skills/build-dashboard/SKILL.md +211 -0
  28. package/template/.cursor/skills/build-data-table/SKILL.md +283 -0
  29. package/template/.cursor/skills/build-form/SKILL.md +231 -0
  30. package/template/.cursor/skills/build-landing-page/SKILL.md +248 -0
  31. package/template/.cursor/skills/configure-ai/SKILL.md +617 -0
  32. package/template/.cursor/skills/configure-analytics/SKILL.md +413 -0
  33. package/template/.cursor/skills/configure-dark-mode/SKILL.md +309 -0
  34. package/template/.cursor/skills/configure-email/SKILL.md +170 -0
  35. package/template/.cursor/skills/configure-email-verification/SKILL.md +333 -0
  36. package/template/.cursor/skills/configure-feature-flags/SKILL.md +361 -0
  37. package/template/.cursor/skills/configure-i18n/SKILL.md +518 -0
  38. package/template/.cursor/skills/configure-jobs/SKILL.md +500 -0
  39. package/template/.cursor/skills/configure-magic-links/SKILL.md +385 -0
  40. package/template/.cursor/skills/configure-multi-tenancy/SKILL.md +611 -0
  41. package/template/.cursor/skills/configure-notifications/SKILL.md +569 -0
  42. package/template/.cursor/skills/configure-oauth/SKILL.md +217 -0
  43. package/template/.cursor/skills/configure-onboarding/SKILL.md +483 -0
  44. package/template/.cursor/skills/configure-payments/SKILL.md +243 -0
  45. package/template/.cursor/skills/configure-realtime/SKILL.md +733 -0
  46. package/template/.cursor/skills/configure-search/SKILL.md +581 -0
  47. package/template/.cursor/skills/configure-storage/SKILL.md +273 -0
  48. package/template/.cursor/skills/configure-two-factor/SKILL.md +518 -0
  49. package/template/.cursor/skills/create-execution-plan/SKILL.md +204 -0
  50. package/template/.cursor/skills/create-seed/SKILL.md +191 -0
  51. package/template/.cursor/skills/deploy-to-vercel/SKILL.md +300 -0
  52. package/template/.cursor/skills/design-tokens/SKILL.md +138 -0
  53. package/template/.cursor/skills/mars-capture-conversation-context/SKILL.md +119 -0
  54. package/template/.cursor/skills/setup-billing/SKILL.md +322 -0
  55. package/template/.cursor/skills/setup-project/SKILL.md +104 -0
  56. package/template/.cursor/skills/setup-teams/SKILL.md +682 -0
  57. package/template/.cursor/skills/test-api-route/SKILL.md +219 -0
  58. package/template/.cursor/skills/update-architecture-docs/SKILL.md +99 -0
  59. package/template/AGENTS.md +104 -0
  60. package/template/ARCHITECTURE.md +102 -0
  61. package/template/docs/QUALITY_SCORE.md +20 -0
  62. package/template/docs/design-docs/conversation-as-system-record.md +70 -0
  63. package/template/docs/design-docs/core-beliefs.md +43 -0
  64. package/template/docs/design-docs/index.md +8 -0
  65. package/template/docs/exec-plans/active/.gitkeep +0 -0
  66. package/template/docs/exec-plans/completed/.gitkeep +0 -0
  67. package/template/docs/exec-plans/tech-debt.md +7 -0
  68. package/template/docs/generated/.gitkeep +0 -0
  69. package/template/docs/product-specs/index.md +7 -0
  70. package/template/docs/references/index.md +18 -0
  71. package/template/e2e/api.spec.ts +20 -0
  72. package/template/e2e/auth.spec.ts +24 -0
  73. package/template/e2e/public.spec.ts +25 -0
  74. package/template/eslint.config.mjs +24 -0
  75. package/template/next-env.d.ts +6 -0
  76. package/template/next.config.ts +45 -0
  77. package/template/package.json +80 -0
  78. package/template/playwright.config.ts +31 -0
  79. package/template/postcss.config.mjs +8 -0
  80. package/template/prisma/generated/prisma/browser.ts +49 -0
  81. package/template/prisma/generated/prisma/client.ts +73 -0
  82. package/template/prisma/generated/prisma/commonInputTypes.ts +406 -0
  83. package/template/prisma/generated/prisma/enums.ts +15 -0
  84. package/template/prisma/generated/prisma/internal/class.ts +254 -0
  85. package/template/prisma/generated/prisma/internal/prismaNamespace.ts +1240 -0
  86. package/template/prisma/generated/prisma/internal/prismaNamespaceBrowser.ts +190 -0
  87. package/template/prisma/generated/prisma/models/Account.ts +1543 -0
  88. package/template/prisma/generated/prisma/models/File.ts +1529 -0
  89. package/template/prisma/generated/prisma/models/Session.ts +1415 -0
  90. package/template/prisma/generated/prisma/models/Subscription.ts +1455 -0
  91. package/template/prisma/generated/prisma/models/User.ts +2235 -0
  92. package/template/prisma/generated/prisma/models/VerificationToken.ts +1099 -0
  93. package/template/prisma/generated/prisma/models.ts +17 -0
  94. package/template/prisma/schema/auth.prisma +69 -0
  95. package/template/prisma/schema/base.prisma +8 -0
  96. package/template/prisma/schema/file.prisma +15 -0
  97. package/template/prisma/schema/subscription.prisma +17 -0
  98. package/template/prisma.config.ts +13 -0
  99. package/template/scripts/check-architecture.ts +221 -0
  100. package/template/scripts/check-doc-freshness.ts +242 -0
  101. package/template/scripts/ensure-db.mjs +291 -0
  102. package/template/scripts/generate-docs.ts +143 -0
  103. package/template/scripts/generate-env-example.ts +89 -0
  104. package/template/scripts/seed.ts +56 -0
  105. package/template/scripts/update-quality-score.ts +263 -0
  106. package/template/src/__tests__/architecture.test.ts +114 -0
  107. package/template/src/app/(auth)/forgotten-password/page.tsx +92 -0
  108. package/template/src/app/(auth)/layout.tsx +11 -0
  109. package/template/src/app/(auth)/register/page.tsx +162 -0
  110. package/template/src/app/(auth)/reset-password/page.tsx +109 -0
  111. package/template/src/app/(auth)/sign-in/page.tsx +122 -0
  112. package/template/src/app/(auth)/verify/[token]/page.tsx +87 -0
  113. package/template/src/app/(auth)/verify/page.tsx +56 -0
  114. package/template/src/app/(protected)/admin/page.tsx +108 -0
  115. package/template/src/app/(protected)/dashboard/loading.tsx +20 -0
  116. package/template/src/app/(protected)/dashboard/page.tsx +22 -0
  117. package/template/src/app/(protected)/layout.tsx +262 -0
  118. package/template/src/app/(protected)/settings/page.tsx +370 -0
  119. package/template/src/app/api/auth/forgot/route.ts +63 -0
  120. package/template/src/app/api/auth/login/route.ts +121 -0
  121. package/template/src/app/api/auth/logout/route.ts +19 -0
  122. package/template/src/app/api/auth/me/route.ts +30 -0
  123. package/template/src/app/api/auth/reset/route.ts +45 -0
  124. package/template/src/app/api/auth/signup/route.ts +85 -0
  125. package/template/src/app/api/auth/verify/route.ts +46 -0
  126. package/template/src/app/api/csrf/route.ts +12 -0
  127. package/template/src/app/api/health/route.ts +10 -0
  128. package/template/src/app/api/protected/admin/users/route.ts +24 -0
  129. package/template/src/app/api/protected/billing/checkout/route.ts +83 -0
  130. package/template/src/app/api/protected/billing/portal/route.ts +39 -0
  131. package/template/src/app/api/protected/files/[fileId]/route.ts +86 -0
  132. package/template/src/app/api/protected/files/upload/route.ts +64 -0
  133. package/template/src/app/api/protected/user/password/route.ts +63 -0
  134. package/template/src/app/api/protected/user/profile/route.ts +35 -0
  135. package/template/src/app/api/protected/user/sessions/[sessionId]/route.ts +33 -0
  136. package/template/src/app/api/protected/user/sessions/route.ts +22 -0
  137. package/template/src/app/api/readiness/route.ts +15 -0
  138. package/template/src/app/api/webhooks/stripe/route.ts +166 -0
  139. package/template/src/app/error.tsx +33 -0
  140. package/template/src/app/layout.tsx +29 -0
  141. package/template/src/app/not-found.tsx +20 -0
  142. package/template/src/app/page.tsx +136 -0
  143. package/template/src/app/privacy/page.tsx +178 -0
  144. package/template/src/app/providers.tsx +8 -0
  145. package/template/src/app/terms/page.tsx +139 -0
  146. package/template/src/config/app.config.ts +70 -0
  147. package/template/src/config/routes.ts +17 -0
  148. package/template/src/features/admin/index.ts +11 -0
  149. package/template/src/features/admin/permissions.ts +64 -0
  150. package/template/src/features/auth/context/AuthContext.tsx +96 -0
  151. package/template/src/features/auth/context/index.ts +2 -0
  152. package/template/src/features/auth/index.ts +3 -0
  153. package/template/src/features/auth/server/consent.ts +66 -0
  154. package/template/src/features/auth/server/session-revocation.ts +20 -0
  155. package/template/src/features/auth/server/sessions.ts +66 -0
  156. package/template/src/features/auth/server/user.ts +166 -0
  157. package/template/src/features/auth/types.ts +19 -0
  158. package/template/src/features/auth/validators.ts +29 -0
  159. package/template/src/features/billing/server/index.ts +66 -0
  160. package/template/src/features/billing/types.ts +43 -0
  161. package/template/src/features/uploads/server/index.ts +49 -0
  162. package/template/src/features/uploads/types.ts +26 -0
  163. package/template/src/lib/core/email/templates/base-layout.ts +122 -0
  164. package/template/src/lib/core/email/templates/index.ts +4 -0
  165. package/template/src/lib/core/email/templates/password-reset-email.ts +42 -0
  166. package/template/src/lib/core/email/templates/verification-email.ts +41 -0
  167. package/template/src/lib/core/email/templates/welcome-email.ts +40 -0
  168. package/template/src/lib/mars.ts +56 -0
  169. package/template/src/lib/prisma.ts +19 -0
  170. package/template/src/proxy.ts +92 -0
  171. package/template/src/styles/brand.css +15 -0
  172. package/template/src/styles/globals.css +7 -0
  173. package/template/tsconfig.json +59 -0
  174. package/template/vitest.config.ts +41 -0
  175. package/template/vitest.setup.ts +24 -0
@@ -0,0 +1,1099 @@
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 `VerificationToken` 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 VerificationToken
17
+ *
18
+ */
19
+ export type VerificationTokenModel = runtime.Types.Result.DefaultSelection<Prisma.$VerificationTokenPayload>
20
+
21
+ export type AggregateVerificationToken = {
22
+ _count: VerificationTokenCountAggregateOutputType | null
23
+ _min: VerificationTokenMinAggregateOutputType | null
24
+ _max: VerificationTokenMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type VerificationTokenMinAggregateOutputType = {
28
+ identifier: string | null
29
+ token: string | null
30
+ expires: Date | null
31
+ }
32
+
33
+ export type VerificationTokenMaxAggregateOutputType = {
34
+ identifier: string | null
35
+ token: string | null
36
+ expires: Date | null
37
+ }
38
+
39
+ export type VerificationTokenCountAggregateOutputType = {
40
+ identifier: number
41
+ token: number
42
+ expires: number
43
+ _all: number
44
+ }
45
+
46
+
47
+ export type VerificationTokenMinAggregateInputType = {
48
+ identifier?: true
49
+ token?: true
50
+ expires?: true
51
+ }
52
+
53
+ export type VerificationTokenMaxAggregateInputType = {
54
+ identifier?: true
55
+ token?: true
56
+ expires?: true
57
+ }
58
+
59
+ export type VerificationTokenCountAggregateInputType = {
60
+ identifier?: true
61
+ token?: true
62
+ expires?: true
63
+ _all?: true
64
+ }
65
+
66
+ export type VerificationTokenAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
67
+ /**
68
+ * Filter which VerificationToken to aggregate.
69
+ */
70
+ where?: Prisma.VerificationTokenWhereInput
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
73
+ *
74
+ * Determine the order of VerificationTokens to fetch.
75
+ */
76
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[]
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
79
+ *
80
+ * Sets the start position
81
+ */
82
+ cursor?: Prisma.VerificationTokenWhereUniqueInput
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Take `±n` VerificationTokens from the position of the cursor.
87
+ */
88
+ take?: number
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
91
+ *
92
+ * Skip the first `n` VerificationTokens.
93
+ */
94
+ skip?: number
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Count returned VerificationTokens
99
+ **/
100
+ _count?: true | VerificationTokenCountAggregateInputType
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Select which fields to find the minimum value
105
+ **/
106
+ _min?: VerificationTokenMinAggregateInputType
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
109
+ *
110
+ * Select which fields to find the maximum value
111
+ **/
112
+ _max?: VerificationTokenMaxAggregateInputType
113
+ }
114
+
115
+ export type GetVerificationTokenAggregateType<T extends VerificationTokenAggregateArgs> = {
116
+ [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count'
117
+ ? T[P] extends true
118
+ ? number
119
+ : Prisma.GetScalarType<T[P], AggregateVerificationToken[P]>
120
+ : Prisma.GetScalarType<T[P], AggregateVerificationToken[P]>
121
+ }
122
+
123
+
124
+
125
+
126
+ export type VerificationTokenGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
127
+ where?: Prisma.VerificationTokenWhereInput
128
+ orderBy?: Prisma.VerificationTokenOrderByWithAggregationInput | Prisma.VerificationTokenOrderByWithAggregationInput[]
129
+ by: Prisma.VerificationTokenScalarFieldEnum[] | Prisma.VerificationTokenScalarFieldEnum
130
+ having?: Prisma.VerificationTokenScalarWhereWithAggregatesInput
131
+ take?: number
132
+ skip?: number
133
+ _count?: VerificationTokenCountAggregateInputType | true
134
+ _min?: VerificationTokenMinAggregateInputType
135
+ _max?: VerificationTokenMaxAggregateInputType
136
+ }
137
+
138
+ export type VerificationTokenGroupByOutputType = {
139
+ identifier: string
140
+ token: string
141
+ expires: Date
142
+ _count: VerificationTokenCountAggregateOutputType | null
143
+ _min: VerificationTokenMinAggregateOutputType | null
144
+ _max: VerificationTokenMaxAggregateOutputType | null
145
+ }
146
+
147
+ type GetVerificationTokenGroupByPayload<T extends VerificationTokenGroupByArgs> = Prisma.PrismaPromise<
148
+ Array<
149
+ Prisma.PickEnumerable<VerificationTokenGroupByOutputType, T['by']> &
150
+ {
151
+ [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count'
152
+ ? T[P] extends boolean
153
+ ? number
154
+ : Prisma.GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
155
+ : Prisma.GetScalarType<T[P], VerificationTokenGroupByOutputType[P]>
156
+ }
157
+ >
158
+ >
159
+
160
+
161
+
162
+ export type VerificationTokenWhereInput = {
163
+ AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[]
164
+ OR?: Prisma.VerificationTokenWhereInput[]
165
+ NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[]
166
+ identifier?: Prisma.StringFilter<"VerificationToken"> | string
167
+ token?: Prisma.StringFilter<"VerificationToken"> | string
168
+ expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string
169
+ }
170
+
171
+ export type VerificationTokenOrderByWithRelationInput = {
172
+ identifier?: Prisma.SortOrder
173
+ token?: Prisma.SortOrder
174
+ expires?: Prisma.SortOrder
175
+ }
176
+
177
+ export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{
178
+ token?: string
179
+ identifier_token?: Prisma.VerificationTokenIdentifierTokenCompoundUniqueInput
180
+ AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[]
181
+ OR?: Prisma.VerificationTokenWhereInput[]
182
+ NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[]
183
+ identifier?: Prisma.StringFilter<"VerificationToken"> | string
184
+ expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string
185
+ }, "token" | "identifier_token">
186
+
187
+ export type VerificationTokenOrderByWithAggregationInput = {
188
+ identifier?: Prisma.SortOrder
189
+ token?: Prisma.SortOrder
190
+ expires?: Prisma.SortOrder
191
+ _count?: Prisma.VerificationTokenCountOrderByAggregateInput
192
+ _max?: Prisma.VerificationTokenMaxOrderByAggregateInput
193
+ _min?: Prisma.VerificationTokenMinOrderByAggregateInput
194
+ }
195
+
196
+ export type VerificationTokenScalarWhereWithAggregatesInput = {
197
+ AND?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[]
198
+ OR?: Prisma.VerificationTokenScalarWhereWithAggregatesInput[]
199
+ NOT?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[]
200
+ identifier?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string
201
+ token?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string
202
+ expires?: Prisma.DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string
203
+ }
204
+
205
+ export type VerificationTokenCreateInput = {
206
+ identifier: string
207
+ token: string
208
+ expires: Date | string
209
+ }
210
+
211
+ export type VerificationTokenUncheckedCreateInput = {
212
+ identifier: string
213
+ token: string
214
+ expires: Date | string
215
+ }
216
+
217
+ export type VerificationTokenUpdateInput = {
218
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string
219
+ token?: Prisma.StringFieldUpdateOperationsInput | string
220
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
221
+ }
222
+
223
+ export type VerificationTokenUncheckedUpdateInput = {
224
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string
225
+ token?: Prisma.StringFieldUpdateOperationsInput | string
226
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
227
+ }
228
+
229
+ export type VerificationTokenCreateManyInput = {
230
+ identifier: string
231
+ token: string
232
+ expires: Date | string
233
+ }
234
+
235
+ export type VerificationTokenUpdateManyMutationInput = {
236
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string
237
+ token?: Prisma.StringFieldUpdateOperationsInput | string
238
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
239
+ }
240
+
241
+ export type VerificationTokenUncheckedUpdateManyInput = {
242
+ identifier?: Prisma.StringFieldUpdateOperationsInput | string
243
+ token?: Prisma.StringFieldUpdateOperationsInput | string
244
+ expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
245
+ }
246
+
247
+ export type VerificationTokenIdentifierTokenCompoundUniqueInput = {
248
+ identifier: string
249
+ token: string
250
+ }
251
+
252
+ export type VerificationTokenCountOrderByAggregateInput = {
253
+ identifier?: Prisma.SortOrder
254
+ token?: Prisma.SortOrder
255
+ expires?: Prisma.SortOrder
256
+ }
257
+
258
+ export type VerificationTokenMaxOrderByAggregateInput = {
259
+ identifier?: Prisma.SortOrder
260
+ token?: Prisma.SortOrder
261
+ expires?: Prisma.SortOrder
262
+ }
263
+
264
+ export type VerificationTokenMinOrderByAggregateInput = {
265
+ identifier?: Prisma.SortOrder
266
+ token?: Prisma.SortOrder
267
+ expires?: Prisma.SortOrder
268
+ }
269
+
270
+
271
+
272
+ export type VerificationTokenSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
273
+ identifier?: boolean
274
+ token?: boolean
275
+ expires?: boolean
276
+ }, ExtArgs["result"]["verificationToken"]>
277
+
278
+ export type VerificationTokenSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
279
+ identifier?: boolean
280
+ token?: boolean
281
+ expires?: boolean
282
+ }, ExtArgs["result"]["verificationToken"]>
283
+
284
+ export type VerificationTokenSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
285
+ identifier?: boolean
286
+ token?: boolean
287
+ expires?: boolean
288
+ }, ExtArgs["result"]["verificationToken"]>
289
+
290
+ export type VerificationTokenSelectScalar = {
291
+ identifier?: boolean
292
+ token?: boolean
293
+ expires?: boolean
294
+ }
295
+
296
+ export type VerificationTokenOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]>
297
+
298
+ export type $VerificationTokenPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
299
+ name: "VerificationToken"
300
+ objects: {}
301
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
302
+ identifier: string
303
+ token: string
304
+ expires: Date
305
+ }, ExtArgs["result"]["verificationToken"]>
306
+ composites: {}
307
+ }
308
+
309
+ export type VerificationTokenGetPayload<S extends boolean | null | undefined | VerificationTokenDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload, S>
310
+
311
+ export type VerificationTokenCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
312
+ Omit<VerificationTokenFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
313
+ select?: VerificationTokenCountAggregateInputType | true
314
+ }
315
+
316
+ export interface VerificationTokenDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
317
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['VerificationToken'], meta: { name: 'VerificationToken' } }
318
+ /**
319
+ * Find zero or one VerificationToken that matches the filter.
320
+ * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken
321
+ * @example
322
+ * // Get one VerificationToken
323
+ * const verificationToken = await prisma.verificationToken.findUnique({
324
+ * where: {
325
+ * // ... provide filter here
326
+ * }
327
+ * })
328
+ */
329
+ findUnique<T extends VerificationTokenFindUniqueArgs>(args: Prisma.SelectSubset<T, VerificationTokenFindUniqueArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
330
+
331
+ /**
332
+ * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'`
333
+ * if no matches were found.
334
+ * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken
335
+ * @example
336
+ * // Get one VerificationToken
337
+ * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({
338
+ * where: {
339
+ * // ... provide filter here
340
+ * }
341
+ * })
342
+ */
343
+ findUniqueOrThrow<T extends VerificationTokenFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, VerificationTokenFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
344
+
345
+ /**
346
+ * Find the first VerificationToken that matches the filter.
347
+ * Note, that providing `undefined` is treated as the value not being there.
348
+ * Read more here: https://pris.ly/d/null-undefined
349
+ * @param {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken
350
+ * @example
351
+ * // Get one VerificationToken
352
+ * const verificationToken = await prisma.verificationToken.findFirst({
353
+ * where: {
354
+ * // ... provide filter here
355
+ * }
356
+ * })
357
+ */
358
+ findFirst<T extends VerificationTokenFindFirstArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindFirstArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
359
+
360
+ /**
361
+ * Find the first VerificationToken that matches the filter or
362
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
363
+ * Note, that providing `undefined` is treated as the value not being there.
364
+ * Read more here: https://pris.ly/d/null-undefined
365
+ * @param {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken
366
+ * @example
367
+ * // Get one VerificationToken
368
+ * const verificationToken = await prisma.verificationToken.findFirstOrThrow({
369
+ * where: {
370
+ * // ... provide filter here
371
+ * }
372
+ * })
373
+ */
374
+ findFirstOrThrow<T extends VerificationTokenFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
375
+
376
+ /**
377
+ * Find zero or more VerificationTokens that matches the filter.
378
+ * Note, that providing `undefined` is treated as the value not being there.
379
+ * Read more here: https://pris.ly/d/null-undefined
380
+ * @param {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only.
381
+ * @example
382
+ * // Get all VerificationTokens
383
+ * const verificationTokens = await prisma.verificationToken.findMany()
384
+ *
385
+ * // Get first 10 VerificationTokens
386
+ * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 })
387
+ *
388
+ * // Only select the `identifier`
389
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } })
390
+ *
391
+ */
392
+ findMany<T extends VerificationTokenFindManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
393
+
394
+ /**
395
+ * Create a VerificationToken.
396
+ * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken.
397
+ * @example
398
+ * // Create one VerificationToken
399
+ * const VerificationToken = await prisma.verificationToken.create({
400
+ * data: {
401
+ * // ... data to create a VerificationToken
402
+ * }
403
+ * })
404
+ *
405
+ */
406
+ create<T extends VerificationTokenCreateArgs>(args: Prisma.SelectSubset<T, VerificationTokenCreateArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
407
+
408
+ /**
409
+ * Create many VerificationTokens.
410
+ * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens.
411
+ * @example
412
+ * // Create many VerificationTokens
413
+ * const verificationToken = await prisma.verificationToken.createMany({
414
+ * data: [
415
+ * // ... provide data here
416
+ * ]
417
+ * })
418
+ *
419
+ */
420
+ createMany<T extends VerificationTokenCreateManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
421
+
422
+ /**
423
+ * Create many VerificationTokens and returns the data saved in the database.
424
+ * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens.
425
+ * @example
426
+ * // Create many VerificationTokens
427
+ * const verificationToken = await prisma.verificationToken.createManyAndReturn({
428
+ * data: [
429
+ * // ... provide data here
430
+ * ]
431
+ * })
432
+ *
433
+ * // Create many VerificationTokens and only return the `identifier`
434
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({
435
+ * select: { identifier: true },
436
+ * data: [
437
+ * // ... provide data here
438
+ * ]
439
+ * })
440
+ * Note, that providing `undefined` is treated as the value not being there.
441
+ * Read more here: https://pris.ly/d/null-undefined
442
+ *
443
+ */
444
+ createManyAndReturn<T extends VerificationTokenCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, VerificationTokenCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
445
+
446
+ /**
447
+ * Delete a VerificationToken.
448
+ * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken.
449
+ * @example
450
+ * // Delete one VerificationToken
451
+ * const VerificationToken = await prisma.verificationToken.delete({
452
+ * where: {
453
+ * // ... filter to delete one VerificationToken
454
+ * }
455
+ * })
456
+ *
457
+ */
458
+ delete<T extends VerificationTokenDeleteArgs>(args: Prisma.SelectSubset<T, VerificationTokenDeleteArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
459
+
460
+ /**
461
+ * Update one VerificationToken.
462
+ * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken.
463
+ * @example
464
+ * // Update one VerificationToken
465
+ * const verificationToken = await prisma.verificationToken.update({
466
+ * where: {
467
+ * // ... provide filter here
468
+ * },
469
+ * data: {
470
+ * // ... provide data here
471
+ * }
472
+ * })
473
+ *
474
+ */
475
+ update<T extends VerificationTokenUpdateArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
476
+
477
+ /**
478
+ * Delete zero or more VerificationTokens.
479
+ * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete.
480
+ * @example
481
+ * // Delete a few VerificationTokens
482
+ * const { count } = await prisma.verificationToken.deleteMany({
483
+ * where: {
484
+ * // ... provide filter here
485
+ * }
486
+ * })
487
+ *
488
+ */
489
+ deleteMany<T extends VerificationTokenDeleteManyArgs>(args?: Prisma.SelectSubset<T, VerificationTokenDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
490
+
491
+ /**
492
+ * Update zero or more VerificationTokens.
493
+ * Note, that providing `undefined` is treated as the value not being there.
494
+ * Read more here: https://pris.ly/d/null-undefined
495
+ * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows.
496
+ * @example
497
+ * // Update many VerificationTokens
498
+ * const verificationToken = await prisma.verificationToken.updateMany({
499
+ * where: {
500
+ * // ... provide filter here
501
+ * },
502
+ * data: {
503
+ * // ... provide data here
504
+ * }
505
+ * })
506
+ *
507
+ */
508
+ updateMany<T extends VerificationTokenUpdateManyArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
509
+
510
+ /**
511
+ * Update zero or more VerificationTokens and returns the data updated in the database.
512
+ * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens.
513
+ * @example
514
+ * // Update many VerificationTokens
515
+ * const verificationToken = await prisma.verificationToken.updateManyAndReturn({
516
+ * where: {
517
+ * // ... provide filter here
518
+ * },
519
+ * data: [
520
+ * // ... provide data here
521
+ * ]
522
+ * })
523
+ *
524
+ * // Update zero or more VerificationTokens and only return the `identifier`
525
+ * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({
526
+ * select: { identifier: true },
527
+ * where: {
528
+ * // ... provide filter here
529
+ * },
530
+ * data: [
531
+ * // ... provide data here
532
+ * ]
533
+ * })
534
+ * Note, that providing `undefined` is treated as the value not being there.
535
+ * Read more here: https://pris.ly/d/null-undefined
536
+ *
537
+ */
538
+ updateManyAndReturn<T extends VerificationTokenUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
539
+
540
+ /**
541
+ * Create or update one VerificationToken.
542
+ * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken.
543
+ * @example
544
+ * // Update or create a VerificationToken
545
+ * const verificationToken = await prisma.verificationToken.upsert({
546
+ * create: {
547
+ * // ... data to create a VerificationToken
548
+ * },
549
+ * update: {
550
+ * // ... in case it already exists, update
551
+ * },
552
+ * where: {
553
+ * // ... the filter for the VerificationToken we want to update
554
+ * }
555
+ * })
556
+ */
557
+ upsert<T extends VerificationTokenUpsertArgs>(args: Prisma.SelectSubset<T, VerificationTokenUpsertArgs<ExtArgs>>): Prisma.Prisma__VerificationTokenClient<runtime.Types.Result.GetResult<Prisma.$VerificationTokenPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
558
+
559
+
560
+ /**
561
+ * Count the number of VerificationTokens.
562
+ * Note, that providing `undefined` is treated as the value not being there.
563
+ * Read more here: https://pris.ly/d/null-undefined
564
+ * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count.
565
+ * @example
566
+ * // Count the number of VerificationTokens
567
+ * const count = await prisma.verificationToken.count({
568
+ * where: {
569
+ * // ... the filter for the VerificationTokens we want to count
570
+ * }
571
+ * })
572
+ **/
573
+ count<T extends VerificationTokenCountArgs>(
574
+ args?: Prisma.Subset<T, VerificationTokenCountArgs>,
575
+ ): Prisma.PrismaPromise<
576
+ T extends runtime.Types.Utils.Record<'select', any>
577
+ ? T['select'] extends true
578
+ ? number
579
+ : Prisma.GetScalarType<T['select'], VerificationTokenCountAggregateOutputType>
580
+ : number
581
+ >
582
+
583
+ /**
584
+ * Allows you to perform aggregations operations on a VerificationToken.
585
+ * Note, that providing `undefined` is treated as the value not being there.
586
+ * Read more here: https://pris.ly/d/null-undefined
587
+ * @param {VerificationTokenAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
588
+ * @example
589
+ * // Ordered by age ascending
590
+ * // Where email contains prisma.io
591
+ * // Limited to the 10 users
592
+ * const aggregations = await prisma.user.aggregate({
593
+ * _avg: {
594
+ * age: true,
595
+ * },
596
+ * where: {
597
+ * email: {
598
+ * contains: "prisma.io",
599
+ * },
600
+ * },
601
+ * orderBy: {
602
+ * age: "asc",
603
+ * },
604
+ * take: 10,
605
+ * })
606
+ **/
607
+ aggregate<T extends VerificationTokenAggregateArgs>(args: Prisma.Subset<T, VerificationTokenAggregateArgs>): Prisma.PrismaPromise<GetVerificationTokenAggregateType<T>>
608
+
609
+ /**
610
+ * Group by VerificationToken.
611
+ * Note, that providing `undefined` is treated as the value not being there.
612
+ * Read more here: https://pris.ly/d/null-undefined
613
+ * @param {VerificationTokenGroupByArgs} args - Group by arguments.
614
+ * @example
615
+ * // Group by city, order by createdAt, get count
616
+ * const result = await prisma.user.groupBy({
617
+ * by: ['city', 'createdAt'],
618
+ * orderBy: {
619
+ * createdAt: true
620
+ * },
621
+ * _count: {
622
+ * _all: true
623
+ * },
624
+ * })
625
+ *
626
+ **/
627
+ groupBy<
628
+ T extends VerificationTokenGroupByArgs,
629
+ HasSelectOrTake extends Prisma.Or<
630
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
631
+ Prisma.Extends<'take', Prisma.Keys<T>>
632
+ >,
633
+ OrderByArg extends Prisma.True extends HasSelectOrTake
634
+ ? { orderBy: VerificationTokenGroupByArgs['orderBy'] }
635
+ : { orderBy?: VerificationTokenGroupByArgs['orderBy'] },
636
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
637
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
638
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
639
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
640
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
641
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
642
+ InputErrors extends ByEmpty extends Prisma.True
643
+ ? `Error: "by" must not be empty.`
644
+ : HavingValid extends Prisma.False
645
+ ? {
646
+ [P in HavingFields]: P extends ByFields
647
+ ? never
648
+ : P extends string
649
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
650
+ : [
651
+ Error,
652
+ 'Field ',
653
+ P,
654
+ ` in "having" needs to be provided in "by"`,
655
+ ]
656
+ }[HavingFields]
657
+ : 'take' extends Prisma.Keys<T>
658
+ ? 'orderBy' extends Prisma.Keys<T>
659
+ ? ByValid extends Prisma.True
660
+ ? {}
661
+ : {
662
+ [P in OrderFields]: P extends ByFields
663
+ ? never
664
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
665
+ }[OrderFields]
666
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
667
+ : 'skip' extends Prisma.Keys<T>
668
+ ? 'orderBy' extends Prisma.Keys<T>
669
+ ? ByValid extends Prisma.True
670
+ ? {}
671
+ : {
672
+ [P in OrderFields]: P extends ByFields
673
+ ? never
674
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
675
+ }[OrderFields]
676
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
677
+ : ByValid extends Prisma.True
678
+ ? {}
679
+ : {
680
+ [P in OrderFields]: P extends ByFields
681
+ ? never
682
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
683
+ }[OrderFields]
684
+ >(args: Prisma.SubsetIntersection<T, VerificationTokenGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetVerificationTokenGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
685
+ /**
686
+ * Fields of the VerificationToken model
687
+ */
688
+ readonly fields: VerificationTokenFieldRefs;
689
+ }
690
+
691
+ /**
692
+ * The delegate class that acts as a "Promise-like" for VerificationToken.
693
+ * Why is this prefixed with `Prisma__`?
694
+ * Because we want to prevent naming conflicts as mentioned in
695
+ * https://github.com/prisma/prisma-client-js/issues/707
696
+ */
697
+ export interface Prisma__VerificationTokenClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
698
+ readonly [Symbol.toStringTag]: "PrismaPromise"
699
+ /**
700
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
701
+ * @param onfulfilled The callback to execute when the Promise is resolved.
702
+ * @param onrejected The callback to execute when the Promise is rejected.
703
+ * @returns A Promise for the completion of which ever callback is executed.
704
+ */
705
+ 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>
706
+ /**
707
+ * Attaches a callback for only the rejection of the Promise.
708
+ * @param onrejected The callback to execute when the Promise is rejected.
709
+ * @returns A Promise for the completion of the callback.
710
+ */
711
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
712
+ /**
713
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
714
+ * resolved value cannot be modified from the callback.
715
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
716
+ * @returns A Promise for the completion of the callback.
717
+ */
718
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
719
+ }
720
+
721
+
722
+
723
+
724
+ /**
725
+ * Fields of the VerificationToken model
726
+ */
727
+ export interface VerificationTokenFieldRefs {
728
+ readonly identifier: Prisma.FieldRef<"VerificationToken", 'String'>
729
+ readonly token: Prisma.FieldRef<"VerificationToken", 'String'>
730
+ readonly expires: Prisma.FieldRef<"VerificationToken", 'DateTime'>
731
+ }
732
+
733
+
734
+ // Custom InputTypes
735
+ /**
736
+ * VerificationToken findUnique
737
+ */
738
+ export type VerificationTokenFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
739
+ /**
740
+ * Select specific fields to fetch from the VerificationToken
741
+ */
742
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
743
+ /**
744
+ * Omit specific fields from the VerificationToken
745
+ */
746
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
747
+ /**
748
+ * Filter, which VerificationToken to fetch.
749
+ */
750
+ where: Prisma.VerificationTokenWhereUniqueInput
751
+ }
752
+
753
+ /**
754
+ * VerificationToken findUniqueOrThrow
755
+ */
756
+ export type VerificationTokenFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
757
+ /**
758
+ * Select specific fields to fetch from the VerificationToken
759
+ */
760
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
761
+ /**
762
+ * Omit specific fields from the VerificationToken
763
+ */
764
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
765
+ /**
766
+ * Filter, which VerificationToken to fetch.
767
+ */
768
+ where: Prisma.VerificationTokenWhereUniqueInput
769
+ }
770
+
771
+ /**
772
+ * VerificationToken findFirst
773
+ */
774
+ export type VerificationTokenFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
775
+ /**
776
+ * Select specific fields to fetch from the VerificationToken
777
+ */
778
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
779
+ /**
780
+ * Omit specific fields from the VerificationToken
781
+ */
782
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
783
+ /**
784
+ * Filter, which VerificationToken to fetch.
785
+ */
786
+ where?: Prisma.VerificationTokenWhereInput
787
+ /**
788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
789
+ *
790
+ * Determine the order of VerificationTokens to fetch.
791
+ */
792
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[]
793
+ /**
794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
795
+ *
796
+ * Sets the position for searching for VerificationTokens.
797
+ */
798
+ cursor?: Prisma.VerificationTokenWhereUniqueInput
799
+ /**
800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
801
+ *
802
+ * Take `±n` VerificationTokens from the position of the cursor.
803
+ */
804
+ take?: number
805
+ /**
806
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
807
+ *
808
+ * Skip the first `n` VerificationTokens.
809
+ */
810
+ skip?: number
811
+ /**
812
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
813
+ *
814
+ * Filter by unique combinations of VerificationTokens.
815
+ */
816
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[]
817
+ }
818
+
819
+ /**
820
+ * VerificationToken findFirstOrThrow
821
+ */
822
+ export type VerificationTokenFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
823
+ /**
824
+ * Select specific fields to fetch from the VerificationToken
825
+ */
826
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
827
+ /**
828
+ * Omit specific fields from the VerificationToken
829
+ */
830
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
831
+ /**
832
+ * Filter, which VerificationToken to fetch.
833
+ */
834
+ where?: Prisma.VerificationTokenWhereInput
835
+ /**
836
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
837
+ *
838
+ * Determine the order of VerificationTokens to fetch.
839
+ */
840
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[]
841
+ /**
842
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
843
+ *
844
+ * Sets the position for searching for VerificationTokens.
845
+ */
846
+ cursor?: Prisma.VerificationTokenWhereUniqueInput
847
+ /**
848
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
849
+ *
850
+ * Take `±n` VerificationTokens from the position of the cursor.
851
+ */
852
+ take?: number
853
+ /**
854
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
855
+ *
856
+ * Skip the first `n` VerificationTokens.
857
+ */
858
+ skip?: number
859
+ /**
860
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
861
+ *
862
+ * Filter by unique combinations of VerificationTokens.
863
+ */
864
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[]
865
+ }
866
+
867
+ /**
868
+ * VerificationToken findMany
869
+ */
870
+ export type VerificationTokenFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
871
+ /**
872
+ * Select specific fields to fetch from the VerificationToken
873
+ */
874
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
875
+ /**
876
+ * Omit specific fields from the VerificationToken
877
+ */
878
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
879
+ /**
880
+ * Filter, which VerificationTokens to fetch.
881
+ */
882
+ where?: Prisma.VerificationTokenWhereInput
883
+ /**
884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
885
+ *
886
+ * Determine the order of VerificationTokens to fetch.
887
+ */
888
+ orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[]
889
+ /**
890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
891
+ *
892
+ * Sets the position for listing VerificationTokens.
893
+ */
894
+ cursor?: Prisma.VerificationTokenWhereUniqueInput
895
+ /**
896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
897
+ *
898
+ * Take `±n` VerificationTokens from the position of the cursor.
899
+ */
900
+ take?: number
901
+ /**
902
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
903
+ *
904
+ * Skip the first `n` VerificationTokens.
905
+ */
906
+ skip?: number
907
+ /**
908
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
909
+ *
910
+ * Filter by unique combinations of VerificationTokens.
911
+ */
912
+ distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[]
913
+ }
914
+
915
+ /**
916
+ * VerificationToken create
917
+ */
918
+ export type VerificationTokenCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
919
+ /**
920
+ * Select specific fields to fetch from the VerificationToken
921
+ */
922
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
923
+ /**
924
+ * Omit specific fields from the VerificationToken
925
+ */
926
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
927
+ /**
928
+ * The data needed to create a VerificationToken.
929
+ */
930
+ data: Prisma.XOR<Prisma.VerificationTokenCreateInput, Prisma.VerificationTokenUncheckedCreateInput>
931
+ }
932
+
933
+ /**
934
+ * VerificationToken createMany
935
+ */
936
+ export type VerificationTokenCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
937
+ /**
938
+ * The data used to create many VerificationTokens.
939
+ */
940
+ data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[]
941
+ skipDuplicates?: boolean
942
+ }
943
+
944
+ /**
945
+ * VerificationToken createManyAndReturn
946
+ */
947
+ export type VerificationTokenCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
948
+ /**
949
+ * Select specific fields to fetch from the VerificationToken
950
+ */
951
+ select?: Prisma.VerificationTokenSelectCreateManyAndReturn<ExtArgs> | null
952
+ /**
953
+ * Omit specific fields from the VerificationToken
954
+ */
955
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
956
+ /**
957
+ * The data used to create many VerificationTokens.
958
+ */
959
+ data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[]
960
+ skipDuplicates?: boolean
961
+ }
962
+
963
+ /**
964
+ * VerificationToken update
965
+ */
966
+ export type VerificationTokenUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
967
+ /**
968
+ * Select specific fields to fetch from the VerificationToken
969
+ */
970
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
971
+ /**
972
+ * Omit specific fields from the VerificationToken
973
+ */
974
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
975
+ /**
976
+ * The data needed to update a VerificationToken.
977
+ */
978
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateInput, Prisma.VerificationTokenUncheckedUpdateInput>
979
+ /**
980
+ * Choose, which VerificationToken to update.
981
+ */
982
+ where: Prisma.VerificationTokenWhereUniqueInput
983
+ }
984
+
985
+ /**
986
+ * VerificationToken updateMany
987
+ */
988
+ export type VerificationTokenUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
989
+ /**
990
+ * The data used to update VerificationTokens.
991
+ */
992
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateManyMutationInput, Prisma.VerificationTokenUncheckedUpdateManyInput>
993
+ /**
994
+ * Filter which VerificationTokens to update
995
+ */
996
+ where?: Prisma.VerificationTokenWhereInput
997
+ /**
998
+ * Limit how many VerificationTokens to update.
999
+ */
1000
+ limit?: number
1001
+ }
1002
+
1003
+ /**
1004
+ * VerificationToken updateManyAndReturn
1005
+ */
1006
+ export type VerificationTokenUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1007
+ /**
1008
+ * Select specific fields to fetch from the VerificationToken
1009
+ */
1010
+ select?: Prisma.VerificationTokenSelectUpdateManyAndReturn<ExtArgs> | null
1011
+ /**
1012
+ * Omit specific fields from the VerificationToken
1013
+ */
1014
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
1015
+ /**
1016
+ * The data used to update VerificationTokens.
1017
+ */
1018
+ data: Prisma.XOR<Prisma.VerificationTokenUpdateManyMutationInput, Prisma.VerificationTokenUncheckedUpdateManyInput>
1019
+ /**
1020
+ * Filter which VerificationTokens to update
1021
+ */
1022
+ where?: Prisma.VerificationTokenWhereInput
1023
+ /**
1024
+ * Limit how many VerificationTokens to update.
1025
+ */
1026
+ limit?: number
1027
+ }
1028
+
1029
+ /**
1030
+ * VerificationToken upsert
1031
+ */
1032
+ export type VerificationTokenUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * Select specific fields to fetch from the VerificationToken
1035
+ */
1036
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
1037
+ /**
1038
+ * Omit specific fields from the VerificationToken
1039
+ */
1040
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
1041
+ /**
1042
+ * The filter to search for the VerificationToken to update in case it exists.
1043
+ */
1044
+ where: Prisma.VerificationTokenWhereUniqueInput
1045
+ /**
1046
+ * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data.
1047
+ */
1048
+ create: Prisma.XOR<Prisma.VerificationTokenCreateInput, Prisma.VerificationTokenUncheckedCreateInput>
1049
+ /**
1050
+ * In case the VerificationToken was found with the provided `where` argument, update it with this data.
1051
+ */
1052
+ update: Prisma.XOR<Prisma.VerificationTokenUpdateInput, Prisma.VerificationTokenUncheckedUpdateInput>
1053
+ }
1054
+
1055
+ /**
1056
+ * VerificationToken delete
1057
+ */
1058
+ export type VerificationTokenDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the VerificationToken
1061
+ */
1062
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
1063
+ /**
1064
+ * Omit specific fields from the VerificationToken
1065
+ */
1066
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
1067
+ /**
1068
+ * Filter which VerificationToken to delete.
1069
+ */
1070
+ where: Prisma.VerificationTokenWhereUniqueInput
1071
+ }
1072
+
1073
+ /**
1074
+ * VerificationToken deleteMany
1075
+ */
1076
+ export type VerificationTokenDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1077
+ /**
1078
+ * Filter which VerificationTokens to delete
1079
+ */
1080
+ where?: Prisma.VerificationTokenWhereInput
1081
+ /**
1082
+ * Limit how many VerificationTokens to delete.
1083
+ */
1084
+ limit?: number
1085
+ }
1086
+
1087
+ /**
1088
+ * VerificationToken without action
1089
+ */
1090
+ export type VerificationTokenDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1091
+ /**
1092
+ * Select specific fields to fetch from the VerificationToken
1093
+ */
1094
+ select?: Prisma.VerificationTokenSelect<ExtArgs> | null
1095
+ /**
1096
+ * Omit specific fields from the VerificationToken
1097
+ */
1098
+ omit?: Prisma.VerificationTokenOmit<ExtArgs> | null
1099
+ }