@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,2235 @@
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 `User` 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 User
17
+ *
18
+ */
19
+ export type UserModel = runtime.Types.Result.DefaultSelection<Prisma.$UserPayload>
20
+
21
+ export type AggregateUser = {
22
+ _count: UserCountAggregateOutputType | null
23
+ _avg: UserAvgAggregateOutputType | null
24
+ _sum: UserSumAggregateOutputType | null
25
+ _min: UserMinAggregateOutputType | null
26
+ _max: UserMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type UserAvgAggregateOutputType = {
30
+ failedLoginAttempts: number | null
31
+ }
32
+
33
+ export type UserSumAggregateOutputType = {
34
+ failedLoginAttempts: number | null
35
+ }
36
+
37
+ export type UserMinAggregateOutputType = {
38
+ id: string | null
39
+ email: string | null
40
+ name: string | null
41
+ password: string | null
42
+ role: string | null
43
+ emailVerified: Date | null
44
+ image: string | null
45
+ createdAt: Date | null
46
+ updatedAt: Date | null
47
+ failedLoginAttempts: number | null
48
+ lastFailedLogin: Date | null
49
+ lockedUntil: Date | null
50
+ termsAcceptedAt: Date | null
51
+ privacyAcceptedAt: Date | null
52
+ marketingOptIn: boolean | null
53
+ marketingOptInAt: Date | null
54
+ }
55
+
56
+ export type UserMaxAggregateOutputType = {
57
+ id: string | null
58
+ email: string | null
59
+ name: string | null
60
+ password: string | null
61
+ role: string | null
62
+ emailVerified: Date | null
63
+ image: string | null
64
+ createdAt: Date | null
65
+ updatedAt: Date | null
66
+ failedLoginAttempts: number | null
67
+ lastFailedLogin: Date | null
68
+ lockedUntil: Date | null
69
+ termsAcceptedAt: Date | null
70
+ privacyAcceptedAt: Date | null
71
+ marketingOptIn: boolean | null
72
+ marketingOptInAt: Date | null
73
+ }
74
+
75
+ export type UserCountAggregateOutputType = {
76
+ id: number
77
+ email: number
78
+ name: number
79
+ password: number
80
+ role: number
81
+ emailVerified: number
82
+ image: number
83
+ createdAt: number
84
+ updatedAt: number
85
+ failedLoginAttempts: number
86
+ lastFailedLogin: number
87
+ lockedUntil: number
88
+ termsAcceptedAt: number
89
+ privacyAcceptedAt: number
90
+ marketingOptIn: number
91
+ marketingOptInAt: number
92
+ _all: number
93
+ }
94
+
95
+
96
+ export type UserAvgAggregateInputType = {
97
+ failedLoginAttempts?: true
98
+ }
99
+
100
+ export type UserSumAggregateInputType = {
101
+ failedLoginAttempts?: true
102
+ }
103
+
104
+ export type UserMinAggregateInputType = {
105
+ id?: true
106
+ email?: true
107
+ name?: true
108
+ password?: true
109
+ role?: true
110
+ emailVerified?: true
111
+ image?: true
112
+ createdAt?: true
113
+ updatedAt?: true
114
+ failedLoginAttempts?: true
115
+ lastFailedLogin?: true
116
+ lockedUntil?: true
117
+ termsAcceptedAt?: true
118
+ privacyAcceptedAt?: true
119
+ marketingOptIn?: true
120
+ marketingOptInAt?: true
121
+ }
122
+
123
+ export type UserMaxAggregateInputType = {
124
+ id?: true
125
+ email?: true
126
+ name?: true
127
+ password?: true
128
+ role?: true
129
+ emailVerified?: true
130
+ image?: true
131
+ createdAt?: true
132
+ updatedAt?: true
133
+ failedLoginAttempts?: true
134
+ lastFailedLogin?: true
135
+ lockedUntil?: true
136
+ termsAcceptedAt?: true
137
+ privacyAcceptedAt?: true
138
+ marketingOptIn?: true
139
+ marketingOptInAt?: true
140
+ }
141
+
142
+ export type UserCountAggregateInputType = {
143
+ id?: true
144
+ email?: true
145
+ name?: true
146
+ password?: true
147
+ role?: true
148
+ emailVerified?: true
149
+ image?: true
150
+ createdAt?: true
151
+ updatedAt?: true
152
+ failedLoginAttempts?: true
153
+ lastFailedLogin?: true
154
+ lockedUntil?: true
155
+ termsAcceptedAt?: true
156
+ privacyAcceptedAt?: true
157
+ marketingOptIn?: true
158
+ marketingOptInAt?: true
159
+ _all?: true
160
+ }
161
+
162
+ export type UserAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
163
+ /**
164
+ * Filter which User to aggregate.
165
+ */
166
+ where?: Prisma.UserWhereInput
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
169
+ *
170
+ * Determine the order of Users to fetch.
171
+ */
172
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
175
+ *
176
+ * Sets the start position
177
+ */
178
+ cursor?: Prisma.UserWhereUniqueInput
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
181
+ *
182
+ * Take `±n` Users from the position of the cursor.
183
+ */
184
+ take?: number
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
187
+ *
188
+ * Skip the first `n` Users.
189
+ */
190
+ skip?: number
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Count returned Users
195
+ **/
196
+ _count?: true | UserCountAggregateInputType
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to average
201
+ **/
202
+ _avg?: UserAvgAggregateInputType
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
+ *
206
+ * Select which fields to sum
207
+ **/
208
+ _sum?: UserSumAggregateInputType
209
+ /**
210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
211
+ *
212
+ * Select which fields to find the minimum value
213
+ **/
214
+ _min?: UserMinAggregateInputType
215
+ /**
216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
217
+ *
218
+ * Select which fields to find the maximum value
219
+ **/
220
+ _max?: UserMaxAggregateInputType
221
+ }
222
+
223
+ export type GetUserAggregateType<T extends UserAggregateArgs> = {
224
+ [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count'
225
+ ? T[P] extends true
226
+ ? number
227
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
228
+ : Prisma.GetScalarType<T[P], AggregateUser[P]>
229
+ }
230
+
231
+
232
+
233
+
234
+ export type UserGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
235
+ where?: Prisma.UserWhereInput
236
+ orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[]
237
+ by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum
238
+ having?: Prisma.UserScalarWhereWithAggregatesInput
239
+ take?: number
240
+ skip?: number
241
+ _count?: UserCountAggregateInputType | true
242
+ _avg?: UserAvgAggregateInputType
243
+ _sum?: UserSumAggregateInputType
244
+ _min?: UserMinAggregateInputType
245
+ _max?: UserMaxAggregateInputType
246
+ }
247
+
248
+ export type UserGroupByOutputType = {
249
+ id: string
250
+ email: string
251
+ name: string | null
252
+ password: string | null
253
+ role: string
254
+ emailVerified: Date | null
255
+ image: string | null
256
+ createdAt: Date
257
+ updatedAt: Date
258
+ failedLoginAttempts: number
259
+ lastFailedLogin: Date | null
260
+ lockedUntil: Date | null
261
+ termsAcceptedAt: Date | null
262
+ privacyAcceptedAt: Date | null
263
+ marketingOptIn: boolean
264
+ marketingOptInAt: Date | null
265
+ _count: UserCountAggregateOutputType | null
266
+ _avg: UserAvgAggregateOutputType | null
267
+ _sum: UserSumAggregateOutputType | null
268
+ _min: UserMinAggregateOutputType | null
269
+ _max: UserMaxAggregateOutputType | null
270
+ }
271
+
272
+ type GetUserGroupByPayload<T extends UserGroupByArgs> = Prisma.PrismaPromise<
273
+ Array<
274
+ Prisma.PickEnumerable<UserGroupByOutputType, T['by']> &
275
+ {
276
+ [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count'
277
+ ? T[P] extends boolean
278
+ ? number
279
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
280
+ : Prisma.GetScalarType<T[P], UserGroupByOutputType[P]>
281
+ }
282
+ >
283
+ >
284
+
285
+
286
+
287
+ export type UserWhereInput = {
288
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
289
+ OR?: Prisma.UserWhereInput[]
290
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
291
+ id?: Prisma.StringFilter<"User"> | string
292
+ email?: Prisma.StringFilter<"User"> | string
293
+ name?: Prisma.StringNullableFilter<"User"> | string | null
294
+ password?: Prisma.StringNullableFilter<"User"> | string | null
295
+ role?: Prisma.StringFilter<"User"> | string
296
+ emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
297
+ image?: Prisma.StringNullableFilter<"User"> | string | null
298
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
299
+ updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
300
+ failedLoginAttempts?: Prisma.IntFilter<"User"> | number
301
+ lastFailedLogin?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
302
+ lockedUntil?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
303
+ termsAcceptedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
304
+ privacyAcceptedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
305
+ marketingOptIn?: Prisma.BoolFilter<"User"> | boolean
306
+ marketingOptInAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
307
+ accounts?: Prisma.AccountListRelationFilter
308
+ sessions?: Prisma.SessionListRelationFilter
309
+ files?: Prisma.FileListRelationFilter
310
+ subscription?: Prisma.XOR<Prisma.SubscriptionNullableScalarRelationFilter, Prisma.SubscriptionWhereInput> | null
311
+ }
312
+
313
+ export type UserOrderByWithRelationInput = {
314
+ id?: Prisma.SortOrder
315
+ email?: Prisma.SortOrder
316
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
317
+ password?: Prisma.SortOrderInput | Prisma.SortOrder
318
+ role?: Prisma.SortOrder
319
+ emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder
320
+ image?: Prisma.SortOrderInput | Prisma.SortOrder
321
+ createdAt?: Prisma.SortOrder
322
+ updatedAt?: Prisma.SortOrder
323
+ failedLoginAttempts?: Prisma.SortOrder
324
+ lastFailedLogin?: Prisma.SortOrderInput | Prisma.SortOrder
325
+ lockedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
326
+ termsAcceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
327
+ privacyAcceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
328
+ marketingOptIn?: Prisma.SortOrder
329
+ marketingOptInAt?: Prisma.SortOrderInput | Prisma.SortOrder
330
+ accounts?: Prisma.AccountOrderByRelationAggregateInput
331
+ sessions?: Prisma.SessionOrderByRelationAggregateInput
332
+ files?: Prisma.FileOrderByRelationAggregateInput
333
+ subscription?: Prisma.SubscriptionOrderByWithRelationInput
334
+ }
335
+
336
+ export type UserWhereUniqueInput = Prisma.AtLeast<{
337
+ id?: string
338
+ email?: string
339
+ AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
340
+ OR?: Prisma.UserWhereInput[]
341
+ NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]
342
+ name?: Prisma.StringNullableFilter<"User"> | string | null
343
+ password?: Prisma.StringNullableFilter<"User"> | string | null
344
+ role?: Prisma.StringFilter<"User"> | string
345
+ emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
346
+ image?: Prisma.StringNullableFilter<"User"> | string | null
347
+ createdAt?: Prisma.DateTimeFilter<"User"> | Date | string
348
+ updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string
349
+ failedLoginAttempts?: Prisma.IntFilter<"User"> | number
350
+ lastFailedLogin?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
351
+ lockedUntil?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
352
+ termsAcceptedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
353
+ privacyAcceptedAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
354
+ marketingOptIn?: Prisma.BoolFilter<"User"> | boolean
355
+ marketingOptInAt?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null
356
+ accounts?: Prisma.AccountListRelationFilter
357
+ sessions?: Prisma.SessionListRelationFilter
358
+ files?: Prisma.FileListRelationFilter
359
+ subscription?: Prisma.XOR<Prisma.SubscriptionNullableScalarRelationFilter, Prisma.SubscriptionWhereInput> | null
360
+ }, "id" | "email">
361
+
362
+ export type UserOrderByWithAggregationInput = {
363
+ id?: Prisma.SortOrder
364
+ email?: Prisma.SortOrder
365
+ name?: Prisma.SortOrderInput | Prisma.SortOrder
366
+ password?: Prisma.SortOrderInput | Prisma.SortOrder
367
+ role?: Prisma.SortOrder
368
+ emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder
369
+ image?: Prisma.SortOrderInput | Prisma.SortOrder
370
+ createdAt?: Prisma.SortOrder
371
+ updatedAt?: Prisma.SortOrder
372
+ failedLoginAttempts?: Prisma.SortOrder
373
+ lastFailedLogin?: Prisma.SortOrderInput | Prisma.SortOrder
374
+ lockedUntil?: Prisma.SortOrderInput | Prisma.SortOrder
375
+ termsAcceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
376
+ privacyAcceptedAt?: Prisma.SortOrderInput | Prisma.SortOrder
377
+ marketingOptIn?: Prisma.SortOrder
378
+ marketingOptInAt?: Prisma.SortOrderInput | Prisma.SortOrder
379
+ _count?: Prisma.UserCountOrderByAggregateInput
380
+ _avg?: Prisma.UserAvgOrderByAggregateInput
381
+ _max?: Prisma.UserMaxOrderByAggregateInput
382
+ _min?: Prisma.UserMinOrderByAggregateInput
383
+ _sum?: Prisma.UserSumOrderByAggregateInput
384
+ }
385
+
386
+ export type UserScalarWhereWithAggregatesInput = {
387
+ AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
388
+ OR?: Prisma.UserScalarWhereWithAggregatesInput[]
389
+ NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[]
390
+ id?: Prisma.StringWithAggregatesFilter<"User"> | string
391
+ email?: Prisma.StringWithAggregatesFilter<"User"> | string
392
+ name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
393
+ password?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
394
+ role?: Prisma.StringWithAggregatesFilter<"User"> | string
395
+ emailVerified?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
396
+ image?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null
397
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
398
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string
399
+ failedLoginAttempts?: Prisma.IntWithAggregatesFilter<"User"> | number
400
+ lastFailedLogin?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
401
+ lockedUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
402
+ termsAcceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
403
+ privacyAcceptedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
404
+ marketingOptIn?: Prisma.BoolWithAggregatesFilter<"User"> | boolean
405
+ marketingOptInAt?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null
406
+ }
407
+
408
+ export type UserCreateInput = {
409
+ id?: string
410
+ email: string
411
+ name?: string | null
412
+ password?: string | null
413
+ role?: string
414
+ emailVerified?: Date | string | null
415
+ image?: string | null
416
+ createdAt?: Date | string
417
+ updatedAt?: Date | string
418
+ failedLoginAttempts?: number
419
+ lastFailedLogin?: Date | string | null
420
+ lockedUntil?: Date | string | null
421
+ termsAcceptedAt?: Date | string | null
422
+ privacyAcceptedAt?: Date | string | null
423
+ marketingOptIn?: boolean
424
+ marketingOptInAt?: Date | string | null
425
+ accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
426
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
427
+ files?: Prisma.FileCreateNestedManyWithoutUserInput
428
+ subscription?: Prisma.SubscriptionCreateNestedOneWithoutUserInput
429
+ }
430
+
431
+ export type UserUncheckedCreateInput = {
432
+ id?: string
433
+ email: string
434
+ name?: string | null
435
+ password?: string | null
436
+ role?: string
437
+ emailVerified?: Date | string | null
438
+ image?: string | null
439
+ createdAt?: Date | string
440
+ updatedAt?: Date | string
441
+ failedLoginAttempts?: number
442
+ lastFailedLogin?: Date | string | null
443
+ lockedUntil?: Date | string | null
444
+ termsAcceptedAt?: Date | string | null
445
+ privacyAcceptedAt?: Date | string | null
446
+ marketingOptIn?: boolean
447
+ marketingOptInAt?: Date | string | null
448
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
449
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
450
+ files?: Prisma.FileUncheckedCreateNestedManyWithoutUserInput
451
+ subscription?: Prisma.SubscriptionUncheckedCreateNestedOneWithoutUserInput
452
+ }
453
+
454
+ export type UserUpdateInput = {
455
+ id?: Prisma.StringFieldUpdateOperationsInput | string
456
+ email?: Prisma.StringFieldUpdateOperationsInput | string
457
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
458
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
459
+ role?: Prisma.StringFieldUpdateOperationsInput | string
460
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
461
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
462
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
463
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
464
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
465
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
466
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
467
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
468
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
469
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
470
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
471
+ accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
472
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
473
+ files?: Prisma.FileUpdateManyWithoutUserNestedInput
474
+ subscription?: Prisma.SubscriptionUpdateOneWithoutUserNestedInput
475
+ }
476
+
477
+ export type UserUncheckedUpdateInput = {
478
+ id?: Prisma.StringFieldUpdateOperationsInput | string
479
+ email?: Prisma.StringFieldUpdateOperationsInput | string
480
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
481
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
482
+ role?: Prisma.StringFieldUpdateOperationsInput | string
483
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
484
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
485
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
486
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
487
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
488
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
489
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
490
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
491
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
492
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
493
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
494
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
495
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
496
+ files?: Prisma.FileUncheckedUpdateManyWithoutUserNestedInput
497
+ subscription?: Prisma.SubscriptionUncheckedUpdateOneWithoutUserNestedInput
498
+ }
499
+
500
+ export type UserCreateManyInput = {
501
+ id?: string
502
+ email: string
503
+ name?: string | null
504
+ password?: string | null
505
+ role?: string
506
+ emailVerified?: Date | string | null
507
+ image?: string | null
508
+ createdAt?: Date | string
509
+ updatedAt?: Date | string
510
+ failedLoginAttempts?: number
511
+ lastFailedLogin?: Date | string | null
512
+ lockedUntil?: Date | string | null
513
+ termsAcceptedAt?: Date | string | null
514
+ privacyAcceptedAt?: Date | string | null
515
+ marketingOptIn?: boolean
516
+ marketingOptInAt?: Date | string | null
517
+ }
518
+
519
+ export type UserUpdateManyMutationInput = {
520
+ id?: Prisma.StringFieldUpdateOperationsInput | string
521
+ email?: Prisma.StringFieldUpdateOperationsInput | string
522
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
523
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
524
+ role?: Prisma.StringFieldUpdateOperationsInput | string
525
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
526
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
527
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
528
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
529
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
530
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
531
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
532
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
533
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
534
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
535
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
536
+ }
537
+
538
+ export type UserUncheckedUpdateManyInput = {
539
+ id?: Prisma.StringFieldUpdateOperationsInput | string
540
+ email?: Prisma.StringFieldUpdateOperationsInput | string
541
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
542
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
543
+ role?: Prisma.StringFieldUpdateOperationsInput | string
544
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
545
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
546
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
547
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
548
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
549
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
550
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
551
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
552
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
553
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
554
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
555
+ }
556
+
557
+ export type UserCountOrderByAggregateInput = {
558
+ id?: Prisma.SortOrder
559
+ email?: Prisma.SortOrder
560
+ name?: Prisma.SortOrder
561
+ password?: Prisma.SortOrder
562
+ role?: Prisma.SortOrder
563
+ emailVerified?: Prisma.SortOrder
564
+ image?: Prisma.SortOrder
565
+ createdAt?: Prisma.SortOrder
566
+ updatedAt?: Prisma.SortOrder
567
+ failedLoginAttempts?: Prisma.SortOrder
568
+ lastFailedLogin?: Prisma.SortOrder
569
+ lockedUntil?: Prisma.SortOrder
570
+ termsAcceptedAt?: Prisma.SortOrder
571
+ privacyAcceptedAt?: Prisma.SortOrder
572
+ marketingOptIn?: Prisma.SortOrder
573
+ marketingOptInAt?: Prisma.SortOrder
574
+ }
575
+
576
+ export type UserAvgOrderByAggregateInput = {
577
+ failedLoginAttempts?: Prisma.SortOrder
578
+ }
579
+
580
+ export type UserMaxOrderByAggregateInput = {
581
+ id?: Prisma.SortOrder
582
+ email?: Prisma.SortOrder
583
+ name?: Prisma.SortOrder
584
+ password?: Prisma.SortOrder
585
+ role?: Prisma.SortOrder
586
+ emailVerified?: Prisma.SortOrder
587
+ image?: Prisma.SortOrder
588
+ createdAt?: Prisma.SortOrder
589
+ updatedAt?: Prisma.SortOrder
590
+ failedLoginAttempts?: Prisma.SortOrder
591
+ lastFailedLogin?: Prisma.SortOrder
592
+ lockedUntil?: Prisma.SortOrder
593
+ termsAcceptedAt?: Prisma.SortOrder
594
+ privacyAcceptedAt?: Prisma.SortOrder
595
+ marketingOptIn?: Prisma.SortOrder
596
+ marketingOptInAt?: Prisma.SortOrder
597
+ }
598
+
599
+ export type UserMinOrderByAggregateInput = {
600
+ id?: Prisma.SortOrder
601
+ email?: Prisma.SortOrder
602
+ name?: Prisma.SortOrder
603
+ password?: Prisma.SortOrder
604
+ role?: Prisma.SortOrder
605
+ emailVerified?: Prisma.SortOrder
606
+ image?: Prisma.SortOrder
607
+ createdAt?: Prisma.SortOrder
608
+ updatedAt?: Prisma.SortOrder
609
+ failedLoginAttempts?: Prisma.SortOrder
610
+ lastFailedLogin?: Prisma.SortOrder
611
+ lockedUntil?: Prisma.SortOrder
612
+ termsAcceptedAt?: Prisma.SortOrder
613
+ privacyAcceptedAt?: Prisma.SortOrder
614
+ marketingOptIn?: Prisma.SortOrder
615
+ marketingOptInAt?: Prisma.SortOrder
616
+ }
617
+
618
+ export type UserSumOrderByAggregateInput = {
619
+ failedLoginAttempts?: Prisma.SortOrder
620
+ }
621
+
622
+ export type UserScalarRelationFilter = {
623
+ is?: Prisma.UserWhereInput
624
+ isNot?: Prisma.UserWhereInput
625
+ }
626
+
627
+ export type StringFieldUpdateOperationsInput = {
628
+ set?: string
629
+ }
630
+
631
+ export type NullableStringFieldUpdateOperationsInput = {
632
+ set?: string | null
633
+ }
634
+
635
+ export type NullableDateTimeFieldUpdateOperationsInput = {
636
+ set?: Date | string | null
637
+ }
638
+
639
+ export type DateTimeFieldUpdateOperationsInput = {
640
+ set?: Date | string
641
+ }
642
+
643
+ export type IntFieldUpdateOperationsInput = {
644
+ set?: number
645
+ increment?: number
646
+ decrement?: number
647
+ multiply?: number
648
+ divide?: number
649
+ }
650
+
651
+ export type BoolFieldUpdateOperationsInput = {
652
+ set?: boolean
653
+ }
654
+
655
+ export type UserCreateNestedOneWithoutAccountsInput = {
656
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
657
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput
658
+ connect?: Prisma.UserWhereUniqueInput
659
+ }
660
+
661
+ export type UserUpdateOneRequiredWithoutAccountsNestedInput = {
662
+ create?: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
663
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput
664
+ upsert?: Prisma.UserUpsertWithoutAccountsInput
665
+ connect?: Prisma.UserWhereUniqueInput
666
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutAccountsInput, Prisma.UserUpdateWithoutAccountsInput>, Prisma.UserUncheckedUpdateWithoutAccountsInput>
667
+ }
668
+
669
+ export type UserCreateNestedOneWithoutSessionsInput = {
670
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
671
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
672
+ connect?: Prisma.UserWhereUniqueInput
673
+ }
674
+
675
+ export type UserUpdateOneRequiredWithoutSessionsNestedInput = {
676
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
677
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput
678
+ upsert?: Prisma.UserUpsertWithoutSessionsInput
679
+ connect?: Prisma.UserWhereUniqueInput
680
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSessionsInput, Prisma.UserUpdateWithoutSessionsInput>, Prisma.UserUncheckedUpdateWithoutSessionsInput>
681
+ }
682
+
683
+ export type UserCreateNestedOneWithoutFilesInput = {
684
+ create?: Prisma.XOR<Prisma.UserCreateWithoutFilesInput, Prisma.UserUncheckedCreateWithoutFilesInput>
685
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutFilesInput
686
+ connect?: Prisma.UserWhereUniqueInput
687
+ }
688
+
689
+ export type UserUpdateOneRequiredWithoutFilesNestedInput = {
690
+ create?: Prisma.XOR<Prisma.UserCreateWithoutFilesInput, Prisma.UserUncheckedCreateWithoutFilesInput>
691
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutFilesInput
692
+ upsert?: Prisma.UserUpsertWithoutFilesInput
693
+ connect?: Prisma.UserWhereUniqueInput
694
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutFilesInput, Prisma.UserUpdateWithoutFilesInput>, Prisma.UserUncheckedUpdateWithoutFilesInput>
695
+ }
696
+
697
+ export type UserCreateNestedOneWithoutSubscriptionInput = {
698
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSubscriptionInput, Prisma.UserUncheckedCreateWithoutSubscriptionInput>
699
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSubscriptionInput
700
+ connect?: Prisma.UserWhereUniqueInput
701
+ }
702
+
703
+ export type UserUpdateOneRequiredWithoutSubscriptionNestedInput = {
704
+ create?: Prisma.XOR<Prisma.UserCreateWithoutSubscriptionInput, Prisma.UserUncheckedCreateWithoutSubscriptionInput>
705
+ connectOrCreate?: Prisma.UserCreateOrConnectWithoutSubscriptionInput
706
+ upsert?: Prisma.UserUpsertWithoutSubscriptionInput
707
+ connect?: Prisma.UserWhereUniqueInput
708
+ update?: Prisma.XOR<Prisma.XOR<Prisma.UserUpdateToOneWithWhereWithoutSubscriptionInput, Prisma.UserUpdateWithoutSubscriptionInput>, Prisma.UserUncheckedUpdateWithoutSubscriptionInput>
709
+ }
710
+
711
+ export type UserCreateWithoutAccountsInput = {
712
+ id?: string
713
+ email: string
714
+ name?: string | null
715
+ password?: string | null
716
+ role?: string
717
+ emailVerified?: Date | string | null
718
+ image?: string | null
719
+ createdAt?: Date | string
720
+ updatedAt?: Date | string
721
+ failedLoginAttempts?: number
722
+ lastFailedLogin?: Date | string | null
723
+ lockedUntil?: Date | string | null
724
+ termsAcceptedAt?: Date | string | null
725
+ privacyAcceptedAt?: Date | string | null
726
+ marketingOptIn?: boolean
727
+ marketingOptInAt?: Date | string | null
728
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
729
+ files?: Prisma.FileCreateNestedManyWithoutUserInput
730
+ subscription?: Prisma.SubscriptionCreateNestedOneWithoutUserInput
731
+ }
732
+
733
+ export type UserUncheckedCreateWithoutAccountsInput = {
734
+ id?: string
735
+ email: string
736
+ name?: string | null
737
+ password?: string | null
738
+ role?: string
739
+ emailVerified?: Date | string | null
740
+ image?: string | null
741
+ createdAt?: Date | string
742
+ updatedAt?: Date | string
743
+ failedLoginAttempts?: number
744
+ lastFailedLogin?: Date | string | null
745
+ lockedUntil?: Date | string | null
746
+ termsAcceptedAt?: Date | string | null
747
+ privacyAcceptedAt?: Date | string | null
748
+ marketingOptIn?: boolean
749
+ marketingOptInAt?: Date | string | null
750
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
751
+ files?: Prisma.FileUncheckedCreateNestedManyWithoutUserInput
752
+ subscription?: Prisma.SubscriptionUncheckedCreateNestedOneWithoutUserInput
753
+ }
754
+
755
+ export type UserCreateOrConnectWithoutAccountsInput = {
756
+ where: Prisma.UserWhereUniqueInput
757
+ create: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
758
+ }
759
+
760
+ export type UserUpsertWithoutAccountsInput = {
761
+ update: Prisma.XOR<Prisma.UserUpdateWithoutAccountsInput, Prisma.UserUncheckedUpdateWithoutAccountsInput>
762
+ create: Prisma.XOR<Prisma.UserCreateWithoutAccountsInput, Prisma.UserUncheckedCreateWithoutAccountsInput>
763
+ where?: Prisma.UserWhereInput
764
+ }
765
+
766
+ export type UserUpdateToOneWithWhereWithoutAccountsInput = {
767
+ where?: Prisma.UserWhereInput
768
+ data: Prisma.XOR<Prisma.UserUpdateWithoutAccountsInput, Prisma.UserUncheckedUpdateWithoutAccountsInput>
769
+ }
770
+
771
+ export type UserUpdateWithoutAccountsInput = {
772
+ id?: Prisma.StringFieldUpdateOperationsInput | string
773
+ email?: Prisma.StringFieldUpdateOperationsInput | string
774
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
775
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
776
+ role?: Prisma.StringFieldUpdateOperationsInput | string
777
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
778
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
779
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
780
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
781
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
782
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
783
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
784
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
785
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
786
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
787
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
788
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
789
+ files?: Prisma.FileUpdateManyWithoutUserNestedInput
790
+ subscription?: Prisma.SubscriptionUpdateOneWithoutUserNestedInput
791
+ }
792
+
793
+ export type UserUncheckedUpdateWithoutAccountsInput = {
794
+ id?: Prisma.StringFieldUpdateOperationsInput | string
795
+ email?: Prisma.StringFieldUpdateOperationsInput | string
796
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
797
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
798
+ role?: Prisma.StringFieldUpdateOperationsInput | string
799
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
800
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
801
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
802
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
803
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
804
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
805
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
806
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
807
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
808
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
809
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
810
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
811
+ files?: Prisma.FileUncheckedUpdateManyWithoutUserNestedInput
812
+ subscription?: Prisma.SubscriptionUncheckedUpdateOneWithoutUserNestedInput
813
+ }
814
+
815
+ export type UserCreateWithoutSessionsInput = {
816
+ id?: string
817
+ email: string
818
+ name?: string | null
819
+ password?: string | null
820
+ role?: string
821
+ emailVerified?: Date | string | null
822
+ image?: string | null
823
+ createdAt?: Date | string
824
+ updatedAt?: Date | string
825
+ failedLoginAttempts?: number
826
+ lastFailedLogin?: Date | string | null
827
+ lockedUntil?: Date | string | null
828
+ termsAcceptedAt?: Date | string | null
829
+ privacyAcceptedAt?: Date | string | null
830
+ marketingOptIn?: boolean
831
+ marketingOptInAt?: Date | string | null
832
+ accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
833
+ files?: Prisma.FileCreateNestedManyWithoutUserInput
834
+ subscription?: Prisma.SubscriptionCreateNestedOneWithoutUserInput
835
+ }
836
+
837
+ export type UserUncheckedCreateWithoutSessionsInput = {
838
+ id?: string
839
+ email: string
840
+ name?: string | null
841
+ password?: string | null
842
+ role?: string
843
+ emailVerified?: Date | string | null
844
+ image?: string | null
845
+ createdAt?: Date | string
846
+ updatedAt?: Date | string
847
+ failedLoginAttempts?: number
848
+ lastFailedLogin?: Date | string | null
849
+ lockedUntil?: Date | string | null
850
+ termsAcceptedAt?: Date | string | null
851
+ privacyAcceptedAt?: Date | string | null
852
+ marketingOptIn?: boolean
853
+ marketingOptInAt?: Date | string | null
854
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
855
+ files?: Prisma.FileUncheckedCreateNestedManyWithoutUserInput
856
+ subscription?: Prisma.SubscriptionUncheckedCreateNestedOneWithoutUserInput
857
+ }
858
+
859
+ export type UserCreateOrConnectWithoutSessionsInput = {
860
+ where: Prisma.UserWhereUniqueInput
861
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
862
+ }
863
+
864
+ export type UserUpsertWithoutSessionsInput = {
865
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
866
+ create: Prisma.XOR<Prisma.UserCreateWithoutSessionsInput, Prisma.UserUncheckedCreateWithoutSessionsInput>
867
+ where?: Prisma.UserWhereInput
868
+ }
869
+
870
+ export type UserUpdateToOneWithWhereWithoutSessionsInput = {
871
+ where?: Prisma.UserWhereInput
872
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSessionsInput, Prisma.UserUncheckedUpdateWithoutSessionsInput>
873
+ }
874
+
875
+ export type UserUpdateWithoutSessionsInput = {
876
+ id?: Prisma.StringFieldUpdateOperationsInput | string
877
+ email?: Prisma.StringFieldUpdateOperationsInput | string
878
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
879
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
880
+ role?: Prisma.StringFieldUpdateOperationsInput | string
881
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
882
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
883
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
884
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
885
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
886
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
887
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
888
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
889
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
890
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
891
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
892
+ accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
893
+ files?: Prisma.FileUpdateManyWithoutUserNestedInput
894
+ subscription?: Prisma.SubscriptionUpdateOneWithoutUserNestedInput
895
+ }
896
+
897
+ export type UserUncheckedUpdateWithoutSessionsInput = {
898
+ id?: Prisma.StringFieldUpdateOperationsInput | string
899
+ email?: Prisma.StringFieldUpdateOperationsInput | string
900
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
901
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
902
+ role?: Prisma.StringFieldUpdateOperationsInput | string
903
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
904
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
905
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
906
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
907
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
908
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
909
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
910
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
911
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
912
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
913
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
914
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
915
+ files?: Prisma.FileUncheckedUpdateManyWithoutUserNestedInput
916
+ subscription?: Prisma.SubscriptionUncheckedUpdateOneWithoutUserNestedInput
917
+ }
918
+
919
+ export type UserCreateWithoutFilesInput = {
920
+ id?: string
921
+ email: string
922
+ name?: string | null
923
+ password?: string | null
924
+ role?: string
925
+ emailVerified?: Date | string | null
926
+ image?: string | null
927
+ createdAt?: Date | string
928
+ updatedAt?: Date | string
929
+ failedLoginAttempts?: number
930
+ lastFailedLogin?: Date | string | null
931
+ lockedUntil?: Date | string | null
932
+ termsAcceptedAt?: Date | string | null
933
+ privacyAcceptedAt?: Date | string | null
934
+ marketingOptIn?: boolean
935
+ marketingOptInAt?: Date | string | null
936
+ accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
937
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
938
+ subscription?: Prisma.SubscriptionCreateNestedOneWithoutUserInput
939
+ }
940
+
941
+ export type UserUncheckedCreateWithoutFilesInput = {
942
+ id?: string
943
+ email: string
944
+ name?: string | null
945
+ password?: string | null
946
+ role?: string
947
+ emailVerified?: Date | string | null
948
+ image?: string | null
949
+ createdAt?: Date | string
950
+ updatedAt?: Date | string
951
+ failedLoginAttempts?: number
952
+ lastFailedLogin?: Date | string | null
953
+ lockedUntil?: Date | string | null
954
+ termsAcceptedAt?: Date | string | null
955
+ privacyAcceptedAt?: Date | string | null
956
+ marketingOptIn?: boolean
957
+ marketingOptInAt?: Date | string | null
958
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
959
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
960
+ subscription?: Prisma.SubscriptionUncheckedCreateNestedOneWithoutUserInput
961
+ }
962
+
963
+ export type UserCreateOrConnectWithoutFilesInput = {
964
+ where: Prisma.UserWhereUniqueInput
965
+ create: Prisma.XOR<Prisma.UserCreateWithoutFilesInput, Prisma.UserUncheckedCreateWithoutFilesInput>
966
+ }
967
+
968
+ export type UserUpsertWithoutFilesInput = {
969
+ update: Prisma.XOR<Prisma.UserUpdateWithoutFilesInput, Prisma.UserUncheckedUpdateWithoutFilesInput>
970
+ create: Prisma.XOR<Prisma.UserCreateWithoutFilesInput, Prisma.UserUncheckedCreateWithoutFilesInput>
971
+ where?: Prisma.UserWhereInput
972
+ }
973
+
974
+ export type UserUpdateToOneWithWhereWithoutFilesInput = {
975
+ where?: Prisma.UserWhereInput
976
+ data: Prisma.XOR<Prisma.UserUpdateWithoutFilesInput, Prisma.UserUncheckedUpdateWithoutFilesInput>
977
+ }
978
+
979
+ export type UserUpdateWithoutFilesInput = {
980
+ id?: Prisma.StringFieldUpdateOperationsInput | string
981
+ email?: Prisma.StringFieldUpdateOperationsInput | string
982
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
983
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
984
+ role?: Prisma.StringFieldUpdateOperationsInput | string
985
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
986
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
987
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
988
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
989
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
990
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
991
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
992
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
993
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
994
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
995
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
996
+ accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
997
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
998
+ subscription?: Prisma.SubscriptionUpdateOneWithoutUserNestedInput
999
+ }
1000
+
1001
+ export type UserUncheckedUpdateWithoutFilesInput = {
1002
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1003
+ email?: Prisma.StringFieldUpdateOperationsInput | string
1004
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1005
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1006
+ role?: Prisma.StringFieldUpdateOperationsInput | string
1007
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1008
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1009
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1010
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1011
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
1012
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1013
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1014
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1015
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1016
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
1017
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1018
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
1019
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
1020
+ subscription?: Prisma.SubscriptionUncheckedUpdateOneWithoutUserNestedInput
1021
+ }
1022
+
1023
+ export type UserCreateWithoutSubscriptionInput = {
1024
+ id?: string
1025
+ email: string
1026
+ name?: string | null
1027
+ password?: string | null
1028
+ role?: string
1029
+ emailVerified?: Date | string | null
1030
+ image?: string | null
1031
+ createdAt?: Date | string
1032
+ updatedAt?: Date | string
1033
+ failedLoginAttempts?: number
1034
+ lastFailedLogin?: Date | string | null
1035
+ lockedUntil?: Date | string | null
1036
+ termsAcceptedAt?: Date | string | null
1037
+ privacyAcceptedAt?: Date | string | null
1038
+ marketingOptIn?: boolean
1039
+ marketingOptInAt?: Date | string | null
1040
+ accounts?: Prisma.AccountCreateNestedManyWithoutUserInput
1041
+ sessions?: Prisma.SessionCreateNestedManyWithoutUserInput
1042
+ files?: Prisma.FileCreateNestedManyWithoutUserInput
1043
+ }
1044
+
1045
+ export type UserUncheckedCreateWithoutSubscriptionInput = {
1046
+ id?: string
1047
+ email: string
1048
+ name?: string | null
1049
+ password?: string | null
1050
+ role?: string
1051
+ emailVerified?: Date | string | null
1052
+ image?: string | null
1053
+ createdAt?: Date | string
1054
+ updatedAt?: Date | string
1055
+ failedLoginAttempts?: number
1056
+ lastFailedLogin?: Date | string | null
1057
+ lockedUntil?: Date | string | null
1058
+ termsAcceptedAt?: Date | string | null
1059
+ privacyAcceptedAt?: Date | string | null
1060
+ marketingOptIn?: boolean
1061
+ marketingOptInAt?: Date | string | null
1062
+ accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput
1063
+ sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput
1064
+ files?: Prisma.FileUncheckedCreateNestedManyWithoutUserInput
1065
+ }
1066
+
1067
+ export type UserCreateOrConnectWithoutSubscriptionInput = {
1068
+ where: Prisma.UserWhereUniqueInput
1069
+ create: Prisma.XOR<Prisma.UserCreateWithoutSubscriptionInput, Prisma.UserUncheckedCreateWithoutSubscriptionInput>
1070
+ }
1071
+
1072
+ export type UserUpsertWithoutSubscriptionInput = {
1073
+ update: Prisma.XOR<Prisma.UserUpdateWithoutSubscriptionInput, Prisma.UserUncheckedUpdateWithoutSubscriptionInput>
1074
+ create: Prisma.XOR<Prisma.UserCreateWithoutSubscriptionInput, Prisma.UserUncheckedCreateWithoutSubscriptionInput>
1075
+ where?: Prisma.UserWhereInput
1076
+ }
1077
+
1078
+ export type UserUpdateToOneWithWhereWithoutSubscriptionInput = {
1079
+ where?: Prisma.UserWhereInput
1080
+ data: Prisma.XOR<Prisma.UserUpdateWithoutSubscriptionInput, Prisma.UserUncheckedUpdateWithoutSubscriptionInput>
1081
+ }
1082
+
1083
+ export type UserUpdateWithoutSubscriptionInput = {
1084
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1085
+ email?: Prisma.StringFieldUpdateOperationsInput | string
1086
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1087
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1088
+ role?: Prisma.StringFieldUpdateOperationsInput | string
1089
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1090
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1091
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1092
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1093
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
1094
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1095
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1096
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1097
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1098
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
1099
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1100
+ accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput
1101
+ sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput
1102
+ files?: Prisma.FileUpdateManyWithoutUserNestedInput
1103
+ }
1104
+
1105
+ export type UserUncheckedUpdateWithoutSubscriptionInput = {
1106
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1107
+ email?: Prisma.StringFieldUpdateOperationsInput | string
1108
+ name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1109
+ password?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1110
+ role?: Prisma.StringFieldUpdateOperationsInput | string
1111
+ emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1112
+ image?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1113
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1114
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1115
+ failedLoginAttempts?: Prisma.IntFieldUpdateOperationsInput | number
1116
+ lastFailedLogin?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1117
+ lockedUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1118
+ termsAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1119
+ privacyAcceptedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1120
+ marketingOptIn?: Prisma.BoolFieldUpdateOperationsInput | boolean
1121
+ marketingOptInAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1122
+ accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput
1123
+ sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput
1124
+ files?: Prisma.FileUncheckedUpdateManyWithoutUserNestedInput
1125
+ }
1126
+
1127
+
1128
+ /**
1129
+ * Count Type UserCountOutputType
1130
+ */
1131
+
1132
+ export type UserCountOutputType = {
1133
+ accounts: number
1134
+ sessions: number
1135
+ files: number
1136
+ }
1137
+
1138
+ export type UserCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1139
+ accounts?: boolean | UserCountOutputTypeCountAccountsArgs
1140
+ sessions?: boolean | UserCountOutputTypeCountSessionsArgs
1141
+ files?: boolean | UserCountOutputTypeCountFilesArgs
1142
+ }
1143
+
1144
+ /**
1145
+ * UserCountOutputType without action
1146
+ */
1147
+ export type UserCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1148
+ /**
1149
+ * Select specific fields to fetch from the UserCountOutputType
1150
+ */
1151
+ select?: Prisma.UserCountOutputTypeSelect<ExtArgs> | null
1152
+ }
1153
+
1154
+ /**
1155
+ * UserCountOutputType without action
1156
+ */
1157
+ export type UserCountOutputTypeCountAccountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1158
+ where?: Prisma.AccountWhereInput
1159
+ }
1160
+
1161
+ /**
1162
+ * UserCountOutputType without action
1163
+ */
1164
+ export type UserCountOutputTypeCountSessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1165
+ where?: Prisma.SessionWhereInput
1166
+ }
1167
+
1168
+ /**
1169
+ * UserCountOutputType without action
1170
+ */
1171
+ export type UserCountOutputTypeCountFilesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
+ where?: Prisma.FileWhereInput
1173
+ }
1174
+
1175
+
1176
+ export type UserSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1177
+ id?: boolean
1178
+ email?: boolean
1179
+ name?: boolean
1180
+ password?: boolean
1181
+ role?: boolean
1182
+ emailVerified?: boolean
1183
+ image?: boolean
1184
+ createdAt?: boolean
1185
+ updatedAt?: boolean
1186
+ failedLoginAttempts?: boolean
1187
+ lastFailedLogin?: boolean
1188
+ lockedUntil?: boolean
1189
+ termsAcceptedAt?: boolean
1190
+ privacyAcceptedAt?: boolean
1191
+ marketingOptIn?: boolean
1192
+ marketingOptInAt?: boolean
1193
+ accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>
1194
+ sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
1195
+ files?: boolean | Prisma.User$filesArgs<ExtArgs>
1196
+ subscription?: boolean | Prisma.User$subscriptionArgs<ExtArgs>
1197
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
1198
+ }, ExtArgs["result"]["user"]>
1199
+
1200
+ export type UserSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1201
+ id?: boolean
1202
+ email?: boolean
1203
+ name?: boolean
1204
+ password?: boolean
1205
+ role?: boolean
1206
+ emailVerified?: boolean
1207
+ image?: boolean
1208
+ createdAt?: boolean
1209
+ updatedAt?: boolean
1210
+ failedLoginAttempts?: boolean
1211
+ lastFailedLogin?: boolean
1212
+ lockedUntil?: boolean
1213
+ termsAcceptedAt?: boolean
1214
+ privacyAcceptedAt?: boolean
1215
+ marketingOptIn?: boolean
1216
+ marketingOptInAt?: boolean
1217
+ }, ExtArgs["result"]["user"]>
1218
+
1219
+ export type UserSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1220
+ id?: boolean
1221
+ email?: boolean
1222
+ name?: boolean
1223
+ password?: boolean
1224
+ role?: boolean
1225
+ emailVerified?: boolean
1226
+ image?: boolean
1227
+ createdAt?: boolean
1228
+ updatedAt?: boolean
1229
+ failedLoginAttempts?: boolean
1230
+ lastFailedLogin?: boolean
1231
+ lockedUntil?: boolean
1232
+ termsAcceptedAt?: boolean
1233
+ privacyAcceptedAt?: boolean
1234
+ marketingOptIn?: boolean
1235
+ marketingOptInAt?: boolean
1236
+ }, ExtArgs["result"]["user"]>
1237
+
1238
+ export type UserSelectScalar = {
1239
+ id?: boolean
1240
+ email?: boolean
1241
+ name?: boolean
1242
+ password?: boolean
1243
+ role?: boolean
1244
+ emailVerified?: boolean
1245
+ image?: boolean
1246
+ createdAt?: boolean
1247
+ updatedAt?: boolean
1248
+ failedLoginAttempts?: boolean
1249
+ lastFailedLogin?: boolean
1250
+ lockedUntil?: boolean
1251
+ termsAcceptedAt?: boolean
1252
+ privacyAcceptedAt?: boolean
1253
+ marketingOptIn?: boolean
1254
+ marketingOptInAt?: boolean
1255
+ }
1256
+
1257
+ export type UserOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "email" | "name" | "password" | "role" | "emailVerified" | "image" | "createdAt" | "updatedAt" | "failedLoginAttempts" | "lastFailedLogin" | "lockedUntil" | "termsAcceptedAt" | "privacyAcceptedAt" | "marketingOptIn" | "marketingOptInAt", ExtArgs["result"]["user"]>
1258
+ export type UserInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ accounts?: boolean | Prisma.User$accountsArgs<ExtArgs>
1260
+ sessions?: boolean | Prisma.User$sessionsArgs<ExtArgs>
1261
+ files?: boolean | Prisma.User$filesArgs<ExtArgs>
1262
+ subscription?: boolean | Prisma.User$subscriptionArgs<ExtArgs>
1263
+ _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs<ExtArgs>
1264
+ }
1265
+ export type UserIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1266
+ export type UserIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1267
+
1268
+ export type $UserPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1269
+ name: "User"
1270
+ objects: {
1271
+ accounts: Prisma.$AccountPayload<ExtArgs>[]
1272
+ sessions: Prisma.$SessionPayload<ExtArgs>[]
1273
+ files: Prisma.$FilePayload<ExtArgs>[]
1274
+ subscription: Prisma.$SubscriptionPayload<ExtArgs> | null
1275
+ }
1276
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1277
+ id: string
1278
+ email: string
1279
+ name: string | null
1280
+ password: string | null
1281
+ role: string
1282
+ emailVerified: Date | null
1283
+ image: string | null
1284
+ createdAt: Date
1285
+ updatedAt: Date
1286
+ failedLoginAttempts: number
1287
+ lastFailedLogin: Date | null
1288
+ lockedUntil: Date | null
1289
+ termsAcceptedAt: Date | null
1290
+ privacyAcceptedAt: Date | null
1291
+ marketingOptIn: boolean
1292
+ marketingOptInAt: Date | null
1293
+ }, ExtArgs["result"]["user"]>
1294
+ composites: {}
1295
+ }
1296
+
1297
+ export type UserGetPayload<S extends boolean | null | undefined | UserDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UserPayload, S>
1298
+
1299
+ export type UserCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1300
+ Omit<UserFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1301
+ select?: UserCountAggregateInputType | true
1302
+ }
1303
+
1304
+ export interface UserDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1305
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['User'], meta: { name: 'User' } }
1306
+ /**
1307
+ * Find zero or one User that matches the filter.
1308
+ * @param {UserFindUniqueArgs} args - Arguments to find a User
1309
+ * @example
1310
+ * // Get one User
1311
+ * const user = await prisma.user.findUnique({
1312
+ * where: {
1313
+ * // ... provide filter here
1314
+ * }
1315
+ * })
1316
+ */
1317
+ findUnique<T extends UserFindUniqueArgs>(args: Prisma.SelectSubset<T, UserFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1318
+
1319
+ /**
1320
+ * Find one User that matches the filter or throw an error with `error.code='P2025'`
1321
+ * if no matches were found.
1322
+ * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User
1323
+ * @example
1324
+ * // Get one User
1325
+ * const user = await prisma.user.findUniqueOrThrow({
1326
+ * where: {
1327
+ * // ... provide filter here
1328
+ * }
1329
+ * })
1330
+ */
1331
+ findUniqueOrThrow<T extends UserFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UserFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1332
+
1333
+ /**
1334
+ * Find the first User that matches the filter.
1335
+ * Note, that providing `undefined` is treated as the value not being there.
1336
+ * Read more here: https://pris.ly/d/null-undefined
1337
+ * @param {UserFindFirstArgs} args - Arguments to find a User
1338
+ * @example
1339
+ * // Get one User
1340
+ * const user = await prisma.user.findFirst({
1341
+ * where: {
1342
+ * // ... provide filter here
1343
+ * }
1344
+ * })
1345
+ */
1346
+ findFirst<T extends UserFindFirstArgs>(args?: Prisma.SelectSubset<T, UserFindFirstArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1347
+
1348
+ /**
1349
+ * Find the first User that matches the filter or
1350
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1351
+ * Note, that providing `undefined` is treated as the value not being there.
1352
+ * Read more here: https://pris.ly/d/null-undefined
1353
+ * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User
1354
+ * @example
1355
+ * // Get one User
1356
+ * const user = await prisma.user.findFirstOrThrow({
1357
+ * where: {
1358
+ * // ... provide filter here
1359
+ * }
1360
+ * })
1361
+ */
1362
+ findFirstOrThrow<T extends UserFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UserFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1363
+
1364
+ /**
1365
+ * Find zero or more Users that matches the filter.
1366
+ * Note, that providing `undefined` is treated as the value not being there.
1367
+ * Read more here: https://pris.ly/d/null-undefined
1368
+ * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only.
1369
+ * @example
1370
+ * // Get all Users
1371
+ * const users = await prisma.user.findMany()
1372
+ *
1373
+ * // Get first 10 Users
1374
+ * const users = await prisma.user.findMany({ take: 10 })
1375
+ *
1376
+ * // Only select the `id`
1377
+ * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } })
1378
+ *
1379
+ */
1380
+ findMany<T extends UserFindManyArgs>(args?: Prisma.SelectSubset<T, UserFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1381
+
1382
+ /**
1383
+ * Create a User.
1384
+ * @param {UserCreateArgs} args - Arguments to create a User.
1385
+ * @example
1386
+ * // Create one User
1387
+ * const User = await prisma.user.create({
1388
+ * data: {
1389
+ * // ... data to create a User
1390
+ * }
1391
+ * })
1392
+ *
1393
+ */
1394
+ create<T extends UserCreateArgs>(args: Prisma.SelectSubset<T, UserCreateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1395
+
1396
+ /**
1397
+ * Create many Users.
1398
+ * @param {UserCreateManyArgs} args - Arguments to create many Users.
1399
+ * @example
1400
+ * // Create many Users
1401
+ * const user = await prisma.user.createMany({
1402
+ * data: [
1403
+ * // ... provide data here
1404
+ * ]
1405
+ * })
1406
+ *
1407
+ */
1408
+ createMany<T extends UserCreateManyArgs>(args?: Prisma.SelectSubset<T, UserCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1409
+
1410
+ /**
1411
+ * Create many Users and returns the data saved in the database.
1412
+ * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users.
1413
+ * @example
1414
+ * // Create many Users
1415
+ * const user = await prisma.user.createManyAndReturn({
1416
+ * data: [
1417
+ * // ... provide data here
1418
+ * ]
1419
+ * })
1420
+ *
1421
+ * // Create many Users and only return the `id`
1422
+ * const userWithIdOnly = await prisma.user.createManyAndReturn({
1423
+ * select: { id: true },
1424
+ * data: [
1425
+ * // ... provide data here
1426
+ * ]
1427
+ * })
1428
+ * Note, that providing `undefined` is treated as the value not being there.
1429
+ * Read more here: https://pris.ly/d/null-undefined
1430
+ *
1431
+ */
1432
+ createManyAndReturn<T extends UserCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UserCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1433
+
1434
+ /**
1435
+ * Delete a User.
1436
+ * @param {UserDeleteArgs} args - Arguments to delete one User.
1437
+ * @example
1438
+ * // Delete one User
1439
+ * const User = await prisma.user.delete({
1440
+ * where: {
1441
+ * // ... filter to delete one User
1442
+ * }
1443
+ * })
1444
+ *
1445
+ */
1446
+ delete<T extends UserDeleteArgs>(args: Prisma.SelectSubset<T, UserDeleteArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1447
+
1448
+ /**
1449
+ * Update one User.
1450
+ * @param {UserUpdateArgs} args - Arguments to update one User.
1451
+ * @example
1452
+ * // Update one User
1453
+ * const user = await prisma.user.update({
1454
+ * where: {
1455
+ * // ... provide filter here
1456
+ * },
1457
+ * data: {
1458
+ * // ... provide data here
1459
+ * }
1460
+ * })
1461
+ *
1462
+ */
1463
+ update<T extends UserUpdateArgs>(args: Prisma.SelectSubset<T, UserUpdateArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1464
+
1465
+ /**
1466
+ * Delete zero or more Users.
1467
+ * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete.
1468
+ * @example
1469
+ * // Delete a few Users
1470
+ * const { count } = await prisma.user.deleteMany({
1471
+ * where: {
1472
+ * // ... provide filter here
1473
+ * }
1474
+ * })
1475
+ *
1476
+ */
1477
+ deleteMany<T extends UserDeleteManyArgs>(args?: Prisma.SelectSubset<T, UserDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1478
+
1479
+ /**
1480
+ * Update zero or more Users.
1481
+ * Note, that providing `undefined` is treated as the value not being there.
1482
+ * Read more here: https://pris.ly/d/null-undefined
1483
+ * @param {UserUpdateManyArgs} args - Arguments to update one or more rows.
1484
+ * @example
1485
+ * // Update many Users
1486
+ * const user = await prisma.user.updateMany({
1487
+ * where: {
1488
+ * // ... provide filter here
1489
+ * },
1490
+ * data: {
1491
+ * // ... provide data here
1492
+ * }
1493
+ * })
1494
+ *
1495
+ */
1496
+ updateMany<T extends UserUpdateManyArgs>(args: Prisma.SelectSubset<T, UserUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1497
+
1498
+ /**
1499
+ * Update zero or more Users and returns the data updated in the database.
1500
+ * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users.
1501
+ * @example
1502
+ * // Update many Users
1503
+ * const user = await prisma.user.updateManyAndReturn({
1504
+ * where: {
1505
+ * // ... provide filter here
1506
+ * },
1507
+ * data: [
1508
+ * // ... provide data here
1509
+ * ]
1510
+ * })
1511
+ *
1512
+ * // Update zero or more Users and only return the `id`
1513
+ * const userWithIdOnly = await prisma.user.updateManyAndReturn({
1514
+ * select: { id: true },
1515
+ * where: {
1516
+ * // ... provide filter here
1517
+ * },
1518
+ * data: [
1519
+ * // ... provide data here
1520
+ * ]
1521
+ * })
1522
+ * Note, that providing `undefined` is treated as the value not being there.
1523
+ * Read more here: https://pris.ly/d/null-undefined
1524
+ *
1525
+ */
1526
+ updateManyAndReturn<T extends UserUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UserUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1527
+
1528
+ /**
1529
+ * Create or update one User.
1530
+ * @param {UserUpsertArgs} args - Arguments to update or create a User.
1531
+ * @example
1532
+ * // Update or create a User
1533
+ * const user = await prisma.user.upsert({
1534
+ * create: {
1535
+ * // ... data to create a User
1536
+ * },
1537
+ * update: {
1538
+ * // ... in case it already exists, update
1539
+ * },
1540
+ * where: {
1541
+ * // ... the filter for the User we want to update
1542
+ * }
1543
+ * })
1544
+ */
1545
+ upsert<T extends UserUpsertArgs>(args: Prisma.SelectSubset<T, UserUpsertArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1546
+
1547
+
1548
+ /**
1549
+ * Count the number of Users.
1550
+ * Note, that providing `undefined` is treated as the value not being there.
1551
+ * Read more here: https://pris.ly/d/null-undefined
1552
+ * @param {UserCountArgs} args - Arguments to filter Users to count.
1553
+ * @example
1554
+ * // Count the number of Users
1555
+ * const count = await prisma.user.count({
1556
+ * where: {
1557
+ * // ... the filter for the Users we want to count
1558
+ * }
1559
+ * })
1560
+ **/
1561
+ count<T extends UserCountArgs>(
1562
+ args?: Prisma.Subset<T, UserCountArgs>,
1563
+ ): Prisma.PrismaPromise<
1564
+ T extends runtime.Types.Utils.Record<'select', any>
1565
+ ? T['select'] extends true
1566
+ ? number
1567
+ : Prisma.GetScalarType<T['select'], UserCountAggregateOutputType>
1568
+ : number
1569
+ >
1570
+
1571
+ /**
1572
+ * Allows you to perform aggregations operations on a User.
1573
+ * Note, that providing `undefined` is treated as the value not being there.
1574
+ * Read more here: https://pris.ly/d/null-undefined
1575
+ * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1576
+ * @example
1577
+ * // Ordered by age ascending
1578
+ * // Where email contains prisma.io
1579
+ * // Limited to the 10 users
1580
+ * const aggregations = await prisma.user.aggregate({
1581
+ * _avg: {
1582
+ * age: true,
1583
+ * },
1584
+ * where: {
1585
+ * email: {
1586
+ * contains: "prisma.io",
1587
+ * },
1588
+ * },
1589
+ * orderBy: {
1590
+ * age: "asc",
1591
+ * },
1592
+ * take: 10,
1593
+ * })
1594
+ **/
1595
+ aggregate<T extends UserAggregateArgs>(args: Prisma.Subset<T, UserAggregateArgs>): Prisma.PrismaPromise<GetUserAggregateType<T>>
1596
+
1597
+ /**
1598
+ * Group by User.
1599
+ * Note, that providing `undefined` is treated as the value not being there.
1600
+ * Read more here: https://pris.ly/d/null-undefined
1601
+ * @param {UserGroupByArgs} args - Group by arguments.
1602
+ * @example
1603
+ * // Group by city, order by createdAt, get count
1604
+ * const result = await prisma.user.groupBy({
1605
+ * by: ['city', 'createdAt'],
1606
+ * orderBy: {
1607
+ * createdAt: true
1608
+ * },
1609
+ * _count: {
1610
+ * _all: true
1611
+ * },
1612
+ * })
1613
+ *
1614
+ **/
1615
+ groupBy<
1616
+ T extends UserGroupByArgs,
1617
+ HasSelectOrTake extends Prisma.Or<
1618
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1619
+ Prisma.Extends<'take', Prisma.Keys<T>>
1620
+ >,
1621
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1622
+ ? { orderBy: UserGroupByArgs['orderBy'] }
1623
+ : { orderBy?: UserGroupByArgs['orderBy'] },
1624
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1625
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1626
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1627
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1628
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1629
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1630
+ InputErrors extends ByEmpty extends Prisma.True
1631
+ ? `Error: "by" must not be empty.`
1632
+ : HavingValid extends Prisma.False
1633
+ ? {
1634
+ [P in HavingFields]: P extends ByFields
1635
+ ? never
1636
+ : P extends string
1637
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1638
+ : [
1639
+ Error,
1640
+ 'Field ',
1641
+ P,
1642
+ ` in "having" needs to be provided in "by"`,
1643
+ ]
1644
+ }[HavingFields]
1645
+ : 'take' extends Prisma.Keys<T>
1646
+ ? 'orderBy' extends Prisma.Keys<T>
1647
+ ? ByValid extends Prisma.True
1648
+ ? {}
1649
+ : {
1650
+ [P in OrderFields]: P extends ByFields
1651
+ ? never
1652
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1653
+ }[OrderFields]
1654
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1655
+ : 'skip' extends Prisma.Keys<T>
1656
+ ? 'orderBy' extends Prisma.Keys<T>
1657
+ ? ByValid extends Prisma.True
1658
+ ? {}
1659
+ : {
1660
+ [P in OrderFields]: P extends ByFields
1661
+ ? never
1662
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1663
+ }[OrderFields]
1664
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1665
+ : ByValid extends Prisma.True
1666
+ ? {}
1667
+ : {
1668
+ [P in OrderFields]: P extends ByFields
1669
+ ? never
1670
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1671
+ }[OrderFields]
1672
+ >(args: Prisma.SubsetIntersection<T, UserGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUserGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1673
+ /**
1674
+ * Fields of the User model
1675
+ */
1676
+ readonly fields: UserFieldRefs;
1677
+ }
1678
+
1679
+ /**
1680
+ * The delegate class that acts as a "Promise-like" for User.
1681
+ * Why is this prefixed with `Prisma__`?
1682
+ * Because we want to prevent naming conflicts as mentioned in
1683
+ * https://github.com/prisma/prisma-client-js/issues/707
1684
+ */
1685
+ export interface Prisma__UserClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1686
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1687
+ accounts<T extends Prisma.User$accountsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$accountsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1688
+ sessions<T extends Prisma.User$sessionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$sessionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1689
+ files<T extends Prisma.User$filesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$filesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1690
+ subscription<T extends Prisma.User$subscriptionArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.User$subscriptionArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1691
+ /**
1692
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1693
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1694
+ * @param onrejected The callback to execute when the Promise is rejected.
1695
+ * @returns A Promise for the completion of which ever callback is executed.
1696
+ */
1697
+ 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>
1698
+ /**
1699
+ * Attaches a callback for only the rejection of the Promise.
1700
+ * @param onrejected The callback to execute when the Promise is rejected.
1701
+ * @returns A Promise for the completion of the callback.
1702
+ */
1703
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1704
+ /**
1705
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1706
+ * resolved value cannot be modified from the callback.
1707
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1708
+ * @returns A Promise for the completion of the callback.
1709
+ */
1710
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1711
+ }
1712
+
1713
+
1714
+
1715
+
1716
+ /**
1717
+ * Fields of the User model
1718
+ */
1719
+ export interface UserFieldRefs {
1720
+ readonly id: Prisma.FieldRef<"User", 'String'>
1721
+ readonly email: Prisma.FieldRef<"User", 'String'>
1722
+ readonly name: Prisma.FieldRef<"User", 'String'>
1723
+ readonly password: Prisma.FieldRef<"User", 'String'>
1724
+ readonly role: Prisma.FieldRef<"User", 'String'>
1725
+ readonly emailVerified: Prisma.FieldRef<"User", 'DateTime'>
1726
+ readonly image: Prisma.FieldRef<"User", 'String'>
1727
+ readonly createdAt: Prisma.FieldRef<"User", 'DateTime'>
1728
+ readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'>
1729
+ readonly failedLoginAttempts: Prisma.FieldRef<"User", 'Int'>
1730
+ readonly lastFailedLogin: Prisma.FieldRef<"User", 'DateTime'>
1731
+ readonly lockedUntil: Prisma.FieldRef<"User", 'DateTime'>
1732
+ readonly termsAcceptedAt: Prisma.FieldRef<"User", 'DateTime'>
1733
+ readonly privacyAcceptedAt: Prisma.FieldRef<"User", 'DateTime'>
1734
+ readonly marketingOptIn: Prisma.FieldRef<"User", 'Boolean'>
1735
+ readonly marketingOptInAt: Prisma.FieldRef<"User", 'DateTime'>
1736
+ }
1737
+
1738
+
1739
+ // Custom InputTypes
1740
+ /**
1741
+ * User findUnique
1742
+ */
1743
+ export type UserFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1744
+ /**
1745
+ * Select specific fields to fetch from the User
1746
+ */
1747
+ select?: Prisma.UserSelect<ExtArgs> | null
1748
+ /**
1749
+ * Omit specific fields from the User
1750
+ */
1751
+ omit?: Prisma.UserOmit<ExtArgs> | null
1752
+ /**
1753
+ * Choose, which related nodes to fetch as well
1754
+ */
1755
+ include?: Prisma.UserInclude<ExtArgs> | null
1756
+ /**
1757
+ * Filter, which User to fetch.
1758
+ */
1759
+ where: Prisma.UserWhereUniqueInput
1760
+ }
1761
+
1762
+ /**
1763
+ * User findUniqueOrThrow
1764
+ */
1765
+ export type UserFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1766
+ /**
1767
+ * Select specific fields to fetch from the User
1768
+ */
1769
+ select?: Prisma.UserSelect<ExtArgs> | null
1770
+ /**
1771
+ * Omit specific fields from the User
1772
+ */
1773
+ omit?: Prisma.UserOmit<ExtArgs> | null
1774
+ /**
1775
+ * Choose, which related nodes to fetch as well
1776
+ */
1777
+ include?: Prisma.UserInclude<ExtArgs> | null
1778
+ /**
1779
+ * Filter, which User to fetch.
1780
+ */
1781
+ where: Prisma.UserWhereUniqueInput
1782
+ }
1783
+
1784
+ /**
1785
+ * User findFirst
1786
+ */
1787
+ export type UserFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1788
+ /**
1789
+ * Select specific fields to fetch from the User
1790
+ */
1791
+ select?: Prisma.UserSelect<ExtArgs> | null
1792
+ /**
1793
+ * Omit specific fields from the User
1794
+ */
1795
+ omit?: Prisma.UserOmit<ExtArgs> | null
1796
+ /**
1797
+ * Choose, which related nodes to fetch as well
1798
+ */
1799
+ include?: Prisma.UserInclude<ExtArgs> | null
1800
+ /**
1801
+ * Filter, which User to fetch.
1802
+ */
1803
+ where?: Prisma.UserWhereInput
1804
+ /**
1805
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1806
+ *
1807
+ * Determine the order of Users to fetch.
1808
+ */
1809
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
1810
+ /**
1811
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1812
+ *
1813
+ * Sets the position for searching for Users.
1814
+ */
1815
+ cursor?: Prisma.UserWhereUniqueInput
1816
+ /**
1817
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1818
+ *
1819
+ * Take `±n` Users from the position of the cursor.
1820
+ */
1821
+ take?: number
1822
+ /**
1823
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1824
+ *
1825
+ * Skip the first `n` Users.
1826
+ */
1827
+ skip?: number
1828
+ /**
1829
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1830
+ *
1831
+ * Filter by unique combinations of Users.
1832
+ */
1833
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
1834
+ }
1835
+
1836
+ /**
1837
+ * User findFirstOrThrow
1838
+ */
1839
+ export type UserFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1840
+ /**
1841
+ * Select specific fields to fetch from the User
1842
+ */
1843
+ select?: Prisma.UserSelect<ExtArgs> | null
1844
+ /**
1845
+ * Omit specific fields from the User
1846
+ */
1847
+ omit?: Prisma.UserOmit<ExtArgs> | null
1848
+ /**
1849
+ * Choose, which related nodes to fetch as well
1850
+ */
1851
+ include?: Prisma.UserInclude<ExtArgs> | null
1852
+ /**
1853
+ * Filter, which User to fetch.
1854
+ */
1855
+ where?: Prisma.UserWhereInput
1856
+ /**
1857
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1858
+ *
1859
+ * Determine the order of Users to fetch.
1860
+ */
1861
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
1862
+ /**
1863
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1864
+ *
1865
+ * Sets the position for searching for Users.
1866
+ */
1867
+ cursor?: Prisma.UserWhereUniqueInput
1868
+ /**
1869
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1870
+ *
1871
+ * Take `±n` Users from the position of the cursor.
1872
+ */
1873
+ take?: number
1874
+ /**
1875
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1876
+ *
1877
+ * Skip the first `n` Users.
1878
+ */
1879
+ skip?: number
1880
+ /**
1881
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1882
+ *
1883
+ * Filter by unique combinations of Users.
1884
+ */
1885
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
1886
+ }
1887
+
1888
+ /**
1889
+ * User findMany
1890
+ */
1891
+ export type UserFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1892
+ /**
1893
+ * Select specific fields to fetch from the User
1894
+ */
1895
+ select?: Prisma.UserSelect<ExtArgs> | null
1896
+ /**
1897
+ * Omit specific fields from the User
1898
+ */
1899
+ omit?: Prisma.UserOmit<ExtArgs> | null
1900
+ /**
1901
+ * Choose, which related nodes to fetch as well
1902
+ */
1903
+ include?: Prisma.UserInclude<ExtArgs> | null
1904
+ /**
1905
+ * Filter, which Users to fetch.
1906
+ */
1907
+ where?: Prisma.UserWhereInput
1908
+ /**
1909
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1910
+ *
1911
+ * Determine the order of Users to fetch.
1912
+ */
1913
+ orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[]
1914
+ /**
1915
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1916
+ *
1917
+ * Sets the position for listing Users.
1918
+ */
1919
+ cursor?: Prisma.UserWhereUniqueInput
1920
+ /**
1921
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1922
+ *
1923
+ * Take `±n` Users from the position of the cursor.
1924
+ */
1925
+ take?: number
1926
+ /**
1927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1928
+ *
1929
+ * Skip the first `n` Users.
1930
+ */
1931
+ skip?: number
1932
+ /**
1933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1934
+ *
1935
+ * Filter by unique combinations of Users.
1936
+ */
1937
+ distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]
1938
+ }
1939
+
1940
+ /**
1941
+ * User create
1942
+ */
1943
+ export type UserCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1944
+ /**
1945
+ * Select specific fields to fetch from the User
1946
+ */
1947
+ select?: Prisma.UserSelect<ExtArgs> | null
1948
+ /**
1949
+ * Omit specific fields from the User
1950
+ */
1951
+ omit?: Prisma.UserOmit<ExtArgs> | null
1952
+ /**
1953
+ * Choose, which related nodes to fetch as well
1954
+ */
1955
+ include?: Prisma.UserInclude<ExtArgs> | null
1956
+ /**
1957
+ * The data needed to create a User.
1958
+ */
1959
+ data: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
1960
+ }
1961
+
1962
+ /**
1963
+ * User createMany
1964
+ */
1965
+ export type UserCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1966
+ /**
1967
+ * The data used to create many Users.
1968
+ */
1969
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
1970
+ skipDuplicates?: boolean
1971
+ }
1972
+
1973
+ /**
1974
+ * User createManyAndReturn
1975
+ */
1976
+ export type UserCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1977
+ /**
1978
+ * Select specific fields to fetch from the User
1979
+ */
1980
+ select?: Prisma.UserSelectCreateManyAndReturn<ExtArgs> | null
1981
+ /**
1982
+ * Omit specific fields from the User
1983
+ */
1984
+ omit?: Prisma.UserOmit<ExtArgs> | null
1985
+ /**
1986
+ * The data used to create many Users.
1987
+ */
1988
+ data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]
1989
+ skipDuplicates?: boolean
1990
+ }
1991
+
1992
+ /**
1993
+ * User update
1994
+ */
1995
+ export type UserUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1996
+ /**
1997
+ * Select specific fields to fetch from the User
1998
+ */
1999
+ select?: Prisma.UserSelect<ExtArgs> | null
2000
+ /**
2001
+ * Omit specific fields from the User
2002
+ */
2003
+ omit?: Prisma.UserOmit<ExtArgs> | null
2004
+ /**
2005
+ * Choose, which related nodes to fetch as well
2006
+ */
2007
+ include?: Prisma.UserInclude<ExtArgs> | null
2008
+ /**
2009
+ * The data needed to update a User.
2010
+ */
2011
+ data: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
2012
+ /**
2013
+ * Choose, which User to update.
2014
+ */
2015
+ where: Prisma.UserWhereUniqueInput
2016
+ }
2017
+
2018
+ /**
2019
+ * User updateMany
2020
+ */
2021
+ export type UserUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2022
+ /**
2023
+ * The data used to update Users.
2024
+ */
2025
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
2026
+ /**
2027
+ * Filter which Users to update
2028
+ */
2029
+ where?: Prisma.UserWhereInput
2030
+ /**
2031
+ * Limit how many Users to update.
2032
+ */
2033
+ limit?: number
2034
+ }
2035
+
2036
+ /**
2037
+ * User updateManyAndReturn
2038
+ */
2039
+ export type UserUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2040
+ /**
2041
+ * Select specific fields to fetch from the User
2042
+ */
2043
+ select?: Prisma.UserSelectUpdateManyAndReturn<ExtArgs> | null
2044
+ /**
2045
+ * Omit specific fields from the User
2046
+ */
2047
+ omit?: Prisma.UserOmit<ExtArgs> | null
2048
+ /**
2049
+ * The data used to update Users.
2050
+ */
2051
+ data: Prisma.XOR<Prisma.UserUpdateManyMutationInput, Prisma.UserUncheckedUpdateManyInput>
2052
+ /**
2053
+ * Filter which Users to update
2054
+ */
2055
+ where?: Prisma.UserWhereInput
2056
+ /**
2057
+ * Limit how many Users to update.
2058
+ */
2059
+ limit?: number
2060
+ }
2061
+
2062
+ /**
2063
+ * User upsert
2064
+ */
2065
+ export type UserUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2066
+ /**
2067
+ * Select specific fields to fetch from the User
2068
+ */
2069
+ select?: Prisma.UserSelect<ExtArgs> | null
2070
+ /**
2071
+ * Omit specific fields from the User
2072
+ */
2073
+ omit?: Prisma.UserOmit<ExtArgs> | null
2074
+ /**
2075
+ * Choose, which related nodes to fetch as well
2076
+ */
2077
+ include?: Prisma.UserInclude<ExtArgs> | null
2078
+ /**
2079
+ * The filter to search for the User to update in case it exists.
2080
+ */
2081
+ where: Prisma.UserWhereUniqueInput
2082
+ /**
2083
+ * In case the User found by the `where` argument doesn't exist, create a new User with this data.
2084
+ */
2085
+ create: Prisma.XOR<Prisma.UserCreateInput, Prisma.UserUncheckedCreateInput>
2086
+ /**
2087
+ * In case the User was found with the provided `where` argument, update it with this data.
2088
+ */
2089
+ update: Prisma.XOR<Prisma.UserUpdateInput, Prisma.UserUncheckedUpdateInput>
2090
+ }
2091
+
2092
+ /**
2093
+ * User delete
2094
+ */
2095
+ export type UserDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2096
+ /**
2097
+ * Select specific fields to fetch from the User
2098
+ */
2099
+ select?: Prisma.UserSelect<ExtArgs> | null
2100
+ /**
2101
+ * Omit specific fields from the User
2102
+ */
2103
+ omit?: Prisma.UserOmit<ExtArgs> | null
2104
+ /**
2105
+ * Choose, which related nodes to fetch as well
2106
+ */
2107
+ include?: Prisma.UserInclude<ExtArgs> | null
2108
+ /**
2109
+ * Filter which User to delete.
2110
+ */
2111
+ where: Prisma.UserWhereUniqueInput
2112
+ }
2113
+
2114
+ /**
2115
+ * User deleteMany
2116
+ */
2117
+ export type UserDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2118
+ /**
2119
+ * Filter which Users to delete
2120
+ */
2121
+ where?: Prisma.UserWhereInput
2122
+ /**
2123
+ * Limit how many Users to delete.
2124
+ */
2125
+ limit?: number
2126
+ }
2127
+
2128
+ /**
2129
+ * User.accounts
2130
+ */
2131
+ export type User$accountsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2132
+ /**
2133
+ * Select specific fields to fetch from the Account
2134
+ */
2135
+ select?: Prisma.AccountSelect<ExtArgs> | null
2136
+ /**
2137
+ * Omit specific fields from the Account
2138
+ */
2139
+ omit?: Prisma.AccountOmit<ExtArgs> | null
2140
+ /**
2141
+ * Choose, which related nodes to fetch as well
2142
+ */
2143
+ include?: Prisma.AccountInclude<ExtArgs> | null
2144
+ where?: Prisma.AccountWhereInput
2145
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
2146
+ cursor?: Prisma.AccountWhereUniqueInput
2147
+ take?: number
2148
+ skip?: number
2149
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
2150
+ }
2151
+
2152
+ /**
2153
+ * User.sessions
2154
+ */
2155
+ export type User$sessionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2156
+ /**
2157
+ * Select specific fields to fetch from the Session
2158
+ */
2159
+ select?: Prisma.SessionSelect<ExtArgs> | null
2160
+ /**
2161
+ * Omit specific fields from the Session
2162
+ */
2163
+ omit?: Prisma.SessionOmit<ExtArgs> | null
2164
+ /**
2165
+ * Choose, which related nodes to fetch as well
2166
+ */
2167
+ include?: Prisma.SessionInclude<ExtArgs> | null
2168
+ where?: Prisma.SessionWhereInput
2169
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
2170
+ cursor?: Prisma.SessionWhereUniqueInput
2171
+ take?: number
2172
+ skip?: number
2173
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
2174
+ }
2175
+
2176
+ /**
2177
+ * User.files
2178
+ */
2179
+ export type User$filesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2180
+ /**
2181
+ * Select specific fields to fetch from the File
2182
+ */
2183
+ select?: Prisma.FileSelect<ExtArgs> | null
2184
+ /**
2185
+ * Omit specific fields from the File
2186
+ */
2187
+ omit?: Prisma.FileOmit<ExtArgs> | null
2188
+ /**
2189
+ * Choose, which related nodes to fetch as well
2190
+ */
2191
+ include?: Prisma.FileInclude<ExtArgs> | null
2192
+ where?: Prisma.FileWhereInput
2193
+ orderBy?: Prisma.FileOrderByWithRelationInput | Prisma.FileOrderByWithRelationInput[]
2194
+ cursor?: Prisma.FileWhereUniqueInput
2195
+ take?: number
2196
+ skip?: number
2197
+ distinct?: Prisma.FileScalarFieldEnum | Prisma.FileScalarFieldEnum[]
2198
+ }
2199
+
2200
+ /**
2201
+ * User.subscription
2202
+ */
2203
+ export type User$subscriptionArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2204
+ /**
2205
+ * Select specific fields to fetch from the Subscription
2206
+ */
2207
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2208
+ /**
2209
+ * Omit specific fields from the Subscription
2210
+ */
2211
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2212
+ /**
2213
+ * Choose, which related nodes to fetch as well
2214
+ */
2215
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2216
+ where?: Prisma.SubscriptionWhereInput
2217
+ }
2218
+
2219
+ /**
2220
+ * User without action
2221
+ */
2222
+ export type UserDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2223
+ /**
2224
+ * Select specific fields to fetch from the User
2225
+ */
2226
+ select?: Prisma.UserSelect<ExtArgs> | null
2227
+ /**
2228
+ * Omit specific fields from the User
2229
+ */
2230
+ omit?: Prisma.UserOmit<ExtArgs> | null
2231
+ /**
2232
+ * Choose, which related nodes to fetch as well
2233
+ */
2234
+ include?: Prisma.UserInclude<ExtArgs> | null
2235
+ }