@mars-stack/cli 0.2.0 → 0.2.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 (173) hide show
  1. package/package.json +2 -2
  2. package/template/.cursor/rules/composition-patterns.mdc +186 -0
  3. package/template/.cursor/rules/data-access.mdc +29 -0
  4. package/template/.cursor/rules/project-structure.mdc +34 -0
  5. package/template/.cursor/rules/security.mdc +25 -0
  6. package/template/.cursor/rules/testing.mdc +24 -0
  7. package/template/.cursor/rules/ui-conventions.mdc +29 -0
  8. package/template/.cursor/skills/add-api-route/SKILL.md +122 -0
  9. package/template/.cursor/skills/add-audit-log/SKILL.md +373 -0
  10. package/template/.cursor/skills/add-blog/SKILL.md +447 -0
  11. package/template/.cursor/skills/add-command-palette/SKILL.md +438 -0
  12. package/template/.cursor/skills/add-component/SKILL.md +158 -0
  13. package/template/.cursor/skills/add-crud-routes/SKILL.md +221 -0
  14. package/template/.cursor/skills/add-e2e-test/SKILL.md +227 -0
  15. package/template/.cursor/skills/add-error-boundary/SKILL.md +472 -0
  16. package/template/.cursor/skills/add-feature/SKILL.md +174 -0
  17. package/template/.cursor/skills/add-middleware/SKILL.md +135 -0
  18. package/template/.cursor/skills/add-page/SKILL.md +151 -0
  19. package/template/.cursor/skills/add-prisma-model/SKILL.md +148 -0
  20. package/template/.cursor/skills/add-protected-resource/SKILL.md +192 -0
  21. package/template/.cursor/skills/add-role/SKILL.md +156 -0
  22. package/template/.cursor/skills/add-server-action/SKILL.md +167 -0
  23. package/template/.cursor/skills/add-webhook/SKILL.md +192 -0
  24. package/template/.cursor/skills/build-complete-feature/SKILL.md +227 -0
  25. package/template/.cursor/skills/build-dashboard/SKILL.md +211 -0
  26. package/template/.cursor/skills/build-data-table/SKILL.md +283 -0
  27. package/template/.cursor/skills/build-form/SKILL.md +231 -0
  28. package/template/.cursor/skills/build-landing-page/SKILL.md +248 -0
  29. package/template/.cursor/skills/configure-ai/SKILL.md +617 -0
  30. package/template/.cursor/skills/configure-analytics/SKILL.md +413 -0
  31. package/template/.cursor/skills/configure-dark-mode/SKILL.md +309 -0
  32. package/template/.cursor/skills/configure-email/SKILL.md +170 -0
  33. package/template/.cursor/skills/configure-email-verification/SKILL.md +333 -0
  34. package/template/.cursor/skills/configure-feature-flags/SKILL.md +361 -0
  35. package/template/.cursor/skills/configure-i18n/SKILL.md +518 -0
  36. package/template/.cursor/skills/configure-jobs/SKILL.md +500 -0
  37. package/template/.cursor/skills/configure-magic-links/SKILL.md +385 -0
  38. package/template/.cursor/skills/configure-multi-tenancy/SKILL.md +611 -0
  39. package/template/.cursor/skills/configure-notifications/SKILL.md +569 -0
  40. package/template/.cursor/skills/configure-oauth/SKILL.md +217 -0
  41. package/template/.cursor/skills/configure-onboarding/SKILL.md +483 -0
  42. package/template/.cursor/skills/configure-payments/SKILL.md +243 -0
  43. package/template/.cursor/skills/configure-realtime/SKILL.md +733 -0
  44. package/template/.cursor/skills/configure-search/SKILL.md +581 -0
  45. package/template/.cursor/skills/configure-storage/SKILL.md +273 -0
  46. package/template/.cursor/skills/configure-two-factor/SKILL.md +518 -0
  47. package/template/.cursor/skills/create-execution-plan/SKILL.md +204 -0
  48. package/template/.cursor/skills/create-seed/SKILL.md +191 -0
  49. package/template/.cursor/skills/deploy-to-vercel/SKILL.md +300 -0
  50. package/template/.cursor/skills/design-tokens/SKILL.md +138 -0
  51. package/template/.cursor/skills/mars-capture-conversation-context/SKILL.md +119 -0
  52. package/template/.cursor/skills/setup-billing/SKILL.md +322 -0
  53. package/template/.cursor/skills/setup-project/SKILL.md +104 -0
  54. package/template/.cursor/skills/setup-teams/SKILL.md +682 -0
  55. package/template/.cursor/skills/test-api-route/SKILL.md +219 -0
  56. package/template/.cursor/skills/update-architecture-docs/SKILL.md +99 -0
  57. package/template/AGENTS.md +104 -0
  58. package/template/ARCHITECTURE.md +102 -0
  59. package/template/docs/QUALITY_SCORE.md +20 -0
  60. package/template/docs/design-docs/conversation-as-system-record.md +70 -0
  61. package/template/docs/design-docs/core-beliefs.md +43 -0
  62. package/template/docs/design-docs/index.md +8 -0
  63. package/template/docs/exec-plans/active/.gitkeep +0 -0
  64. package/template/docs/exec-plans/completed/.gitkeep +0 -0
  65. package/template/docs/exec-plans/tech-debt.md +7 -0
  66. package/template/docs/generated/.gitkeep +0 -0
  67. package/template/docs/product-specs/index.md +7 -0
  68. package/template/docs/references/index.md +18 -0
  69. package/template/e2e/api.spec.ts +20 -0
  70. package/template/e2e/auth.spec.ts +24 -0
  71. package/template/e2e/public.spec.ts +25 -0
  72. package/template/eslint.config.mjs +24 -0
  73. package/template/next-env.d.ts +6 -0
  74. package/template/next.config.ts +45 -0
  75. package/template/package.json +80 -0
  76. package/template/playwright.config.ts +31 -0
  77. package/template/postcss.config.mjs +8 -0
  78. package/template/prisma/generated/prisma/browser.ts +49 -0
  79. package/template/prisma/generated/prisma/client.ts +73 -0
  80. package/template/prisma/generated/prisma/commonInputTypes.ts +406 -0
  81. package/template/prisma/generated/prisma/enums.ts +15 -0
  82. package/template/prisma/generated/prisma/internal/class.ts +254 -0
  83. package/template/prisma/generated/prisma/internal/prismaNamespace.ts +1240 -0
  84. package/template/prisma/generated/prisma/internal/prismaNamespaceBrowser.ts +190 -0
  85. package/template/prisma/generated/prisma/models/Account.ts +1543 -0
  86. package/template/prisma/generated/prisma/models/File.ts +1529 -0
  87. package/template/prisma/generated/prisma/models/Session.ts +1415 -0
  88. package/template/prisma/generated/prisma/models/Subscription.ts +1455 -0
  89. package/template/prisma/generated/prisma/models/User.ts +2235 -0
  90. package/template/prisma/generated/prisma/models/VerificationToken.ts +1099 -0
  91. package/template/prisma/generated/prisma/models.ts +17 -0
  92. package/template/prisma/schema/auth.prisma +69 -0
  93. package/template/prisma/schema/base.prisma +8 -0
  94. package/template/prisma/schema/file.prisma +15 -0
  95. package/template/prisma/schema/subscription.prisma +17 -0
  96. package/template/prisma.config.ts +13 -0
  97. package/template/scripts/check-architecture.ts +221 -0
  98. package/template/scripts/check-doc-freshness.ts +242 -0
  99. package/template/scripts/ensure-db.mjs +291 -0
  100. package/template/scripts/generate-docs.ts +143 -0
  101. package/template/scripts/generate-env-example.ts +89 -0
  102. package/template/scripts/seed.ts +56 -0
  103. package/template/scripts/update-quality-score.ts +263 -0
  104. package/template/src/__tests__/architecture.test.ts +114 -0
  105. package/template/src/app/(auth)/forgotten-password/page.tsx +92 -0
  106. package/template/src/app/(auth)/layout.tsx +11 -0
  107. package/template/src/app/(auth)/register/page.tsx +162 -0
  108. package/template/src/app/(auth)/reset-password/page.tsx +109 -0
  109. package/template/src/app/(auth)/sign-in/page.tsx +122 -0
  110. package/template/src/app/(auth)/verify/[token]/page.tsx +87 -0
  111. package/template/src/app/(auth)/verify/page.tsx +56 -0
  112. package/template/src/app/(protected)/admin/page.tsx +108 -0
  113. package/template/src/app/(protected)/dashboard/loading.tsx +20 -0
  114. package/template/src/app/(protected)/dashboard/page.tsx +22 -0
  115. package/template/src/app/(protected)/layout.tsx +262 -0
  116. package/template/src/app/(protected)/settings/page.tsx +370 -0
  117. package/template/src/app/api/auth/forgot/route.ts +63 -0
  118. package/template/src/app/api/auth/login/route.ts +121 -0
  119. package/template/src/app/api/auth/logout/route.ts +19 -0
  120. package/template/src/app/api/auth/me/route.ts +30 -0
  121. package/template/src/app/api/auth/reset/route.ts +45 -0
  122. package/template/src/app/api/auth/signup/route.ts +85 -0
  123. package/template/src/app/api/auth/verify/route.ts +46 -0
  124. package/template/src/app/api/csrf/route.ts +12 -0
  125. package/template/src/app/api/health/route.ts +10 -0
  126. package/template/src/app/api/protected/admin/users/route.ts +24 -0
  127. package/template/src/app/api/protected/billing/checkout/route.ts +83 -0
  128. package/template/src/app/api/protected/billing/portal/route.ts +39 -0
  129. package/template/src/app/api/protected/files/[fileId]/route.ts +86 -0
  130. package/template/src/app/api/protected/files/upload/route.ts +64 -0
  131. package/template/src/app/api/protected/user/password/route.ts +63 -0
  132. package/template/src/app/api/protected/user/profile/route.ts +35 -0
  133. package/template/src/app/api/protected/user/sessions/[sessionId]/route.ts +33 -0
  134. package/template/src/app/api/protected/user/sessions/route.ts +22 -0
  135. package/template/src/app/api/readiness/route.ts +15 -0
  136. package/template/src/app/api/webhooks/stripe/route.ts +166 -0
  137. package/template/src/app/error.tsx +33 -0
  138. package/template/src/app/layout.tsx +29 -0
  139. package/template/src/app/not-found.tsx +20 -0
  140. package/template/src/app/page.tsx +136 -0
  141. package/template/src/app/privacy/page.tsx +178 -0
  142. package/template/src/app/providers.tsx +8 -0
  143. package/template/src/app/terms/page.tsx +139 -0
  144. package/template/src/config/app.config.ts +70 -0
  145. package/template/src/config/routes.ts +17 -0
  146. package/template/src/features/admin/index.ts +11 -0
  147. package/template/src/features/admin/permissions.ts +64 -0
  148. package/template/src/features/auth/context/AuthContext.tsx +96 -0
  149. package/template/src/features/auth/context/index.ts +2 -0
  150. package/template/src/features/auth/index.ts +3 -0
  151. package/template/src/features/auth/server/consent.ts +66 -0
  152. package/template/src/features/auth/server/session-revocation.ts +20 -0
  153. package/template/src/features/auth/server/sessions.ts +66 -0
  154. package/template/src/features/auth/server/user.ts +166 -0
  155. package/template/src/features/auth/types.ts +19 -0
  156. package/template/src/features/auth/validators.ts +29 -0
  157. package/template/src/features/billing/server/index.ts +66 -0
  158. package/template/src/features/billing/types.ts +43 -0
  159. package/template/src/features/uploads/server/index.ts +49 -0
  160. package/template/src/features/uploads/types.ts +26 -0
  161. package/template/src/lib/core/email/templates/base-layout.ts +122 -0
  162. package/template/src/lib/core/email/templates/index.ts +4 -0
  163. package/template/src/lib/core/email/templates/password-reset-email.ts +42 -0
  164. package/template/src/lib/core/email/templates/verification-email.ts +41 -0
  165. package/template/src/lib/core/email/templates/welcome-email.ts +40 -0
  166. package/template/src/lib/mars.ts +56 -0
  167. package/template/src/lib/prisma.ts +19 -0
  168. package/template/src/proxy.ts +92 -0
  169. package/template/src/styles/brand.css +17 -0
  170. package/template/src/styles/globals.css +6 -0
  171. package/template/tsconfig.json +59 -0
  172. package/template/vitest.config.ts +41 -0
  173. package/template/vitest.setup.ts +24 -0
@@ -0,0 +1,1543 @@
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 `Account` 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 Account
17
+ *
18
+ */
19
+ export type AccountModel = runtime.Types.Result.DefaultSelection<Prisma.$AccountPayload>
20
+
21
+ export type AggregateAccount = {
22
+ _count: AccountCountAggregateOutputType | null
23
+ _avg: AccountAvgAggregateOutputType | null
24
+ _sum: AccountSumAggregateOutputType | null
25
+ _min: AccountMinAggregateOutputType | null
26
+ _max: AccountMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AccountAvgAggregateOutputType = {
30
+ expiresAt: number | null
31
+ }
32
+
33
+ export type AccountSumAggregateOutputType = {
34
+ expiresAt: number | null
35
+ }
36
+
37
+ export type AccountMinAggregateOutputType = {
38
+ id: string | null
39
+ userId: string | null
40
+ provider: string | null
41
+ providerAccountId: string | null
42
+ refreshToken: string | null
43
+ accessToken: string | null
44
+ expiresAt: number | null
45
+ tokenType: string | null
46
+ scope: string | null
47
+ }
48
+
49
+ export type AccountMaxAggregateOutputType = {
50
+ id: string | null
51
+ userId: string | null
52
+ provider: string | null
53
+ providerAccountId: string | null
54
+ refreshToken: string | null
55
+ accessToken: string | null
56
+ expiresAt: number | null
57
+ tokenType: string | null
58
+ scope: string | null
59
+ }
60
+
61
+ export type AccountCountAggregateOutputType = {
62
+ id: number
63
+ userId: number
64
+ provider: number
65
+ providerAccountId: number
66
+ refreshToken: number
67
+ accessToken: number
68
+ expiresAt: number
69
+ tokenType: number
70
+ scope: number
71
+ _all: number
72
+ }
73
+
74
+
75
+ export type AccountAvgAggregateInputType = {
76
+ expiresAt?: true
77
+ }
78
+
79
+ export type AccountSumAggregateInputType = {
80
+ expiresAt?: true
81
+ }
82
+
83
+ export type AccountMinAggregateInputType = {
84
+ id?: true
85
+ userId?: true
86
+ provider?: true
87
+ providerAccountId?: true
88
+ refreshToken?: true
89
+ accessToken?: true
90
+ expiresAt?: true
91
+ tokenType?: true
92
+ scope?: true
93
+ }
94
+
95
+ export type AccountMaxAggregateInputType = {
96
+ id?: true
97
+ userId?: true
98
+ provider?: true
99
+ providerAccountId?: true
100
+ refreshToken?: true
101
+ accessToken?: true
102
+ expiresAt?: true
103
+ tokenType?: true
104
+ scope?: true
105
+ }
106
+
107
+ export type AccountCountAggregateInputType = {
108
+ id?: true
109
+ userId?: true
110
+ provider?: true
111
+ providerAccountId?: true
112
+ refreshToken?: true
113
+ accessToken?: true
114
+ expiresAt?: true
115
+ tokenType?: true
116
+ scope?: true
117
+ _all?: true
118
+ }
119
+
120
+ export type AccountAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ /**
122
+ * Filter which Account to aggregate.
123
+ */
124
+ where?: Prisma.AccountWhereInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
127
+ *
128
+ * Determine the order of Accounts to fetch.
129
+ */
130
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
133
+ *
134
+ * Sets the start position
135
+ */
136
+ cursor?: Prisma.AccountWhereUniqueInput
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
139
+ *
140
+ * Take `±n` Accounts from the position of the cursor.
141
+ */
142
+ take?: number
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
145
+ *
146
+ * Skip the first `n` Accounts.
147
+ */
148
+ skip?: number
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Count returned Accounts
153
+ **/
154
+ _count?: true | AccountCountAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to average
159
+ **/
160
+ _avg?: AccountAvgAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to sum
165
+ **/
166
+ _sum?: AccountSumAggregateInputType
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
169
+ *
170
+ * Select which fields to find the minimum value
171
+ **/
172
+ _min?: AccountMinAggregateInputType
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
175
+ *
176
+ * Select which fields to find the maximum value
177
+ **/
178
+ _max?: AccountMaxAggregateInputType
179
+ }
180
+
181
+ export type GetAccountAggregateType<T extends AccountAggregateArgs> = {
182
+ [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count'
183
+ ? T[P] extends true
184
+ ? number
185
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
186
+ : Prisma.GetScalarType<T[P], AggregateAccount[P]>
187
+ }
188
+
189
+
190
+
191
+
192
+ export type AccountGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
193
+ where?: Prisma.AccountWhereInput
194
+ orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[]
195
+ by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum
196
+ having?: Prisma.AccountScalarWhereWithAggregatesInput
197
+ take?: number
198
+ skip?: number
199
+ _count?: AccountCountAggregateInputType | true
200
+ _avg?: AccountAvgAggregateInputType
201
+ _sum?: AccountSumAggregateInputType
202
+ _min?: AccountMinAggregateInputType
203
+ _max?: AccountMaxAggregateInputType
204
+ }
205
+
206
+ export type AccountGroupByOutputType = {
207
+ id: string
208
+ userId: string
209
+ provider: string
210
+ providerAccountId: string
211
+ refreshToken: string | null
212
+ accessToken: string | null
213
+ expiresAt: number | null
214
+ tokenType: string | null
215
+ scope: string | null
216
+ _count: AccountCountAggregateOutputType | null
217
+ _avg: AccountAvgAggregateOutputType | null
218
+ _sum: AccountSumAggregateOutputType | null
219
+ _min: AccountMinAggregateOutputType | null
220
+ _max: AccountMaxAggregateOutputType | null
221
+ }
222
+
223
+ type GetAccountGroupByPayload<T extends AccountGroupByArgs> = Prisma.PrismaPromise<
224
+ Array<
225
+ Prisma.PickEnumerable<AccountGroupByOutputType, T['by']> &
226
+ {
227
+ [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count'
228
+ ? T[P] extends boolean
229
+ ? number
230
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
231
+ : Prisma.GetScalarType<T[P], AccountGroupByOutputType[P]>
232
+ }
233
+ >
234
+ >
235
+
236
+
237
+
238
+ export type AccountWhereInput = {
239
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
240
+ OR?: Prisma.AccountWhereInput[]
241
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
242
+ id?: Prisma.StringFilter<"Account"> | string
243
+ userId?: Prisma.StringFilter<"Account"> | string
244
+ provider?: Prisma.StringFilter<"Account"> | string
245
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
246
+ refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null
247
+ accessToken?: Prisma.StringNullableFilter<"Account"> | string | null
248
+ expiresAt?: Prisma.IntNullableFilter<"Account"> | number | null
249
+ tokenType?: Prisma.StringNullableFilter<"Account"> | string | null
250
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
251
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
252
+ }
253
+
254
+ export type AccountOrderByWithRelationInput = {
255
+ id?: Prisma.SortOrder
256
+ userId?: Prisma.SortOrder
257
+ provider?: Prisma.SortOrder
258
+ providerAccountId?: Prisma.SortOrder
259
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder
260
+ accessToken?: Prisma.SortOrderInput | Prisma.SortOrder
261
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
262
+ tokenType?: Prisma.SortOrderInput | Prisma.SortOrder
263
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
264
+ user?: Prisma.UserOrderByWithRelationInput
265
+ }
266
+
267
+ export type AccountWhereUniqueInput = Prisma.AtLeast<{
268
+ id?: string
269
+ provider_providerAccountId?: Prisma.AccountProviderProviderAccountIdCompoundUniqueInput
270
+ AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
271
+ OR?: Prisma.AccountWhereInput[]
272
+ NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[]
273
+ userId?: Prisma.StringFilter<"Account"> | string
274
+ provider?: Prisma.StringFilter<"Account"> | string
275
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
276
+ refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null
277
+ accessToken?: Prisma.StringNullableFilter<"Account"> | string | null
278
+ expiresAt?: Prisma.IntNullableFilter<"Account"> | number | null
279
+ tokenType?: Prisma.StringNullableFilter<"Account"> | string | null
280
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
281
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
282
+ }, "id" | "provider_providerAccountId">
283
+
284
+ export type AccountOrderByWithAggregationInput = {
285
+ id?: Prisma.SortOrder
286
+ userId?: Prisma.SortOrder
287
+ provider?: Prisma.SortOrder
288
+ providerAccountId?: Prisma.SortOrder
289
+ refreshToken?: Prisma.SortOrderInput | Prisma.SortOrder
290
+ accessToken?: Prisma.SortOrderInput | Prisma.SortOrder
291
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
292
+ tokenType?: Prisma.SortOrderInput | Prisma.SortOrder
293
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
294
+ _count?: Prisma.AccountCountOrderByAggregateInput
295
+ _avg?: Prisma.AccountAvgOrderByAggregateInput
296
+ _max?: Prisma.AccountMaxOrderByAggregateInput
297
+ _min?: Prisma.AccountMinOrderByAggregateInput
298
+ _sum?: Prisma.AccountSumOrderByAggregateInput
299
+ }
300
+
301
+ export type AccountScalarWhereWithAggregatesInput = {
302
+ AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
303
+ OR?: Prisma.AccountScalarWhereWithAggregatesInput[]
304
+ NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[]
305
+ id?: Prisma.StringWithAggregatesFilter<"Account"> | string
306
+ userId?: Prisma.StringWithAggregatesFilter<"Account"> | string
307
+ provider?: Prisma.StringWithAggregatesFilter<"Account"> | string
308
+ providerAccountId?: Prisma.StringWithAggregatesFilter<"Account"> | string
309
+ refreshToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
310
+ accessToken?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
311
+ expiresAt?: Prisma.IntNullableWithAggregatesFilter<"Account"> | number | null
312
+ tokenType?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
313
+ scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null
314
+ }
315
+
316
+ export type AccountCreateInput = {
317
+ id?: string
318
+ provider: string
319
+ providerAccountId: string
320
+ refreshToken?: string | null
321
+ accessToken?: string | null
322
+ expiresAt?: number | null
323
+ tokenType?: string | null
324
+ scope?: string | null
325
+ user: Prisma.UserCreateNestedOneWithoutAccountsInput
326
+ }
327
+
328
+ export type AccountUncheckedCreateInput = {
329
+ id?: string
330
+ userId: string
331
+ provider: string
332
+ providerAccountId: string
333
+ refreshToken?: string | null
334
+ accessToken?: string | null
335
+ expiresAt?: number | null
336
+ tokenType?: string | null
337
+ scope?: string | null
338
+ }
339
+
340
+ export type AccountUpdateInput = {
341
+ id?: Prisma.StringFieldUpdateOperationsInput | string
342
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
343
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
344
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
345
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
346
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
347
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
348
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
349
+ user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput
350
+ }
351
+
352
+ export type AccountUncheckedUpdateInput = {
353
+ id?: Prisma.StringFieldUpdateOperationsInput | string
354
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
355
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
356
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
357
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
358
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
359
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
360
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
361
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
362
+ }
363
+
364
+ export type AccountCreateManyInput = {
365
+ id?: string
366
+ userId: string
367
+ provider: string
368
+ providerAccountId: string
369
+ refreshToken?: string | null
370
+ accessToken?: string | null
371
+ expiresAt?: number | null
372
+ tokenType?: string | null
373
+ scope?: string | null
374
+ }
375
+
376
+ export type AccountUpdateManyMutationInput = {
377
+ id?: Prisma.StringFieldUpdateOperationsInput | string
378
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
379
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
380
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
381
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
382
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
383
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
384
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
385
+ }
386
+
387
+ export type AccountUncheckedUpdateManyInput = {
388
+ id?: Prisma.StringFieldUpdateOperationsInput | string
389
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
390
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
391
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
392
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
393
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
394
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
395
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
396
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
397
+ }
398
+
399
+ export type AccountListRelationFilter = {
400
+ every?: Prisma.AccountWhereInput
401
+ some?: Prisma.AccountWhereInput
402
+ none?: Prisma.AccountWhereInput
403
+ }
404
+
405
+ export type AccountOrderByRelationAggregateInput = {
406
+ _count?: Prisma.SortOrder
407
+ }
408
+
409
+ export type AccountProviderProviderAccountIdCompoundUniqueInput = {
410
+ provider: string
411
+ providerAccountId: string
412
+ }
413
+
414
+ export type AccountCountOrderByAggregateInput = {
415
+ id?: Prisma.SortOrder
416
+ userId?: Prisma.SortOrder
417
+ provider?: Prisma.SortOrder
418
+ providerAccountId?: Prisma.SortOrder
419
+ refreshToken?: Prisma.SortOrder
420
+ accessToken?: Prisma.SortOrder
421
+ expiresAt?: Prisma.SortOrder
422
+ tokenType?: Prisma.SortOrder
423
+ scope?: Prisma.SortOrder
424
+ }
425
+
426
+ export type AccountAvgOrderByAggregateInput = {
427
+ expiresAt?: Prisma.SortOrder
428
+ }
429
+
430
+ export type AccountMaxOrderByAggregateInput = {
431
+ id?: Prisma.SortOrder
432
+ userId?: Prisma.SortOrder
433
+ provider?: Prisma.SortOrder
434
+ providerAccountId?: Prisma.SortOrder
435
+ refreshToken?: Prisma.SortOrder
436
+ accessToken?: Prisma.SortOrder
437
+ expiresAt?: Prisma.SortOrder
438
+ tokenType?: Prisma.SortOrder
439
+ scope?: Prisma.SortOrder
440
+ }
441
+
442
+ export type AccountMinOrderByAggregateInput = {
443
+ id?: Prisma.SortOrder
444
+ userId?: Prisma.SortOrder
445
+ provider?: Prisma.SortOrder
446
+ providerAccountId?: Prisma.SortOrder
447
+ refreshToken?: Prisma.SortOrder
448
+ accessToken?: Prisma.SortOrder
449
+ expiresAt?: Prisma.SortOrder
450
+ tokenType?: Prisma.SortOrder
451
+ scope?: Prisma.SortOrder
452
+ }
453
+
454
+ export type AccountSumOrderByAggregateInput = {
455
+ expiresAt?: Prisma.SortOrder
456
+ }
457
+
458
+ export type AccountCreateNestedManyWithoutUserInput = {
459
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
460
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
461
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
462
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
463
+ }
464
+
465
+ export type AccountUncheckedCreateNestedManyWithoutUserInput = {
466
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
467
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
468
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
469
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
470
+ }
471
+
472
+ export type AccountUpdateManyWithoutUserNestedInput = {
473
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
474
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
475
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
476
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
477
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
478
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
479
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
480
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
481
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
482
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
483
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
484
+ }
485
+
486
+ export type AccountUncheckedUpdateManyWithoutUserNestedInput = {
487
+ create?: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput> | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[]
488
+ connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[]
489
+ upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[]
490
+ createMany?: Prisma.AccountCreateManyUserInputEnvelope
491
+ set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
492
+ disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
493
+ delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
494
+ connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[]
495
+ update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[]
496
+ updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[]
497
+ deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
498
+ }
499
+
500
+ export type NullableIntFieldUpdateOperationsInput = {
501
+ set?: number | null
502
+ increment?: number
503
+ decrement?: number
504
+ multiply?: number
505
+ divide?: number
506
+ }
507
+
508
+ export type AccountCreateWithoutUserInput = {
509
+ id?: string
510
+ provider: string
511
+ providerAccountId: string
512
+ refreshToken?: string | null
513
+ accessToken?: string | null
514
+ expiresAt?: number | null
515
+ tokenType?: string | null
516
+ scope?: string | null
517
+ }
518
+
519
+ export type AccountUncheckedCreateWithoutUserInput = {
520
+ id?: string
521
+ provider: string
522
+ providerAccountId: string
523
+ refreshToken?: string | null
524
+ accessToken?: string | null
525
+ expiresAt?: number | null
526
+ tokenType?: string | null
527
+ scope?: string | null
528
+ }
529
+
530
+ export type AccountCreateOrConnectWithoutUserInput = {
531
+ where: Prisma.AccountWhereUniqueInput
532
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
533
+ }
534
+
535
+ export type AccountCreateManyUserInputEnvelope = {
536
+ data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[]
537
+ skipDuplicates?: boolean
538
+ }
539
+
540
+ export type AccountUpsertWithWhereUniqueWithoutUserInput = {
541
+ where: Prisma.AccountWhereUniqueInput
542
+ update: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
543
+ create: Prisma.XOR<Prisma.AccountCreateWithoutUserInput, Prisma.AccountUncheckedCreateWithoutUserInput>
544
+ }
545
+
546
+ export type AccountUpdateWithWhereUniqueWithoutUserInput = {
547
+ where: Prisma.AccountWhereUniqueInput
548
+ data: Prisma.XOR<Prisma.AccountUpdateWithoutUserInput, Prisma.AccountUncheckedUpdateWithoutUserInput>
549
+ }
550
+
551
+ export type AccountUpdateManyWithWhereWithoutUserInput = {
552
+ where: Prisma.AccountScalarWhereInput
553
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyWithoutUserInput>
554
+ }
555
+
556
+ export type AccountScalarWhereInput = {
557
+ AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
558
+ OR?: Prisma.AccountScalarWhereInput[]
559
+ NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[]
560
+ id?: Prisma.StringFilter<"Account"> | string
561
+ userId?: Prisma.StringFilter<"Account"> | string
562
+ provider?: Prisma.StringFilter<"Account"> | string
563
+ providerAccountId?: Prisma.StringFilter<"Account"> | string
564
+ refreshToken?: Prisma.StringNullableFilter<"Account"> | string | null
565
+ accessToken?: Prisma.StringNullableFilter<"Account"> | string | null
566
+ expiresAt?: Prisma.IntNullableFilter<"Account"> | number | null
567
+ tokenType?: Prisma.StringNullableFilter<"Account"> | string | null
568
+ scope?: Prisma.StringNullableFilter<"Account"> | string | null
569
+ }
570
+
571
+ export type AccountCreateManyUserInput = {
572
+ id?: string
573
+ provider: string
574
+ providerAccountId: string
575
+ refreshToken?: string | null
576
+ accessToken?: string | null
577
+ expiresAt?: number | null
578
+ tokenType?: string | null
579
+ scope?: string | null
580
+ }
581
+
582
+ export type AccountUpdateWithoutUserInput = {
583
+ id?: Prisma.StringFieldUpdateOperationsInput | string
584
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
585
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
586
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
587
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
588
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
589
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
590
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
591
+ }
592
+
593
+ export type AccountUncheckedUpdateWithoutUserInput = {
594
+ id?: Prisma.StringFieldUpdateOperationsInput | string
595
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
596
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
597
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
598
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
599
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
600
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
601
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
602
+ }
603
+
604
+ export type AccountUncheckedUpdateManyWithoutUserInput = {
605
+ id?: Prisma.StringFieldUpdateOperationsInput | string
606
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
607
+ providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string
608
+ refreshToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
609
+ accessToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
610
+ expiresAt?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
611
+ tokenType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
612
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
613
+ }
614
+
615
+
616
+
617
+ export type AccountSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
618
+ id?: boolean
619
+ userId?: boolean
620
+ provider?: boolean
621
+ providerAccountId?: boolean
622
+ refreshToken?: boolean
623
+ accessToken?: boolean
624
+ expiresAt?: boolean
625
+ tokenType?: boolean
626
+ scope?: boolean
627
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
628
+ }, ExtArgs["result"]["account"]>
629
+
630
+ export type AccountSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
631
+ id?: boolean
632
+ userId?: boolean
633
+ provider?: boolean
634
+ providerAccountId?: boolean
635
+ refreshToken?: boolean
636
+ accessToken?: boolean
637
+ expiresAt?: boolean
638
+ tokenType?: boolean
639
+ scope?: boolean
640
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
641
+ }, ExtArgs["result"]["account"]>
642
+
643
+ export type AccountSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
644
+ id?: boolean
645
+ userId?: boolean
646
+ provider?: boolean
647
+ providerAccountId?: boolean
648
+ refreshToken?: boolean
649
+ accessToken?: boolean
650
+ expiresAt?: boolean
651
+ tokenType?: boolean
652
+ scope?: boolean
653
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
654
+ }, ExtArgs["result"]["account"]>
655
+
656
+ export type AccountSelectScalar = {
657
+ id?: boolean
658
+ userId?: boolean
659
+ provider?: boolean
660
+ providerAccountId?: boolean
661
+ refreshToken?: boolean
662
+ accessToken?: boolean
663
+ expiresAt?: boolean
664
+ tokenType?: boolean
665
+ scope?: boolean
666
+ }
667
+
668
+ export type AccountOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "provider" | "providerAccountId" | "refreshToken" | "accessToken" | "expiresAt" | "tokenType" | "scope", ExtArgs["result"]["account"]>
669
+ export type AccountInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
670
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
671
+ }
672
+ export type AccountIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
673
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
674
+ }
675
+ export type AccountIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
676
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
677
+ }
678
+
679
+ export type $AccountPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
680
+ name: "Account"
681
+ objects: {
682
+ user: Prisma.$UserPayload<ExtArgs>
683
+ }
684
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
685
+ id: string
686
+ userId: string
687
+ provider: string
688
+ providerAccountId: string
689
+ refreshToken: string | null
690
+ accessToken: string | null
691
+ expiresAt: number | null
692
+ tokenType: string | null
693
+ scope: string | null
694
+ }, ExtArgs["result"]["account"]>
695
+ composites: {}
696
+ }
697
+
698
+ export type AccountGetPayload<S extends boolean | null | undefined | AccountDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AccountPayload, S>
699
+
700
+ export type AccountCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
701
+ Omit<AccountFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
702
+ select?: AccountCountAggregateInputType | true
703
+ }
704
+
705
+ export interface AccountDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
706
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Account'], meta: { name: 'Account' } }
707
+ /**
708
+ * Find zero or one Account that matches the filter.
709
+ * @param {AccountFindUniqueArgs} args - Arguments to find a Account
710
+ * @example
711
+ * // Get one Account
712
+ * const account = await prisma.account.findUnique({
713
+ * where: {
714
+ * // ... provide filter here
715
+ * }
716
+ * })
717
+ */
718
+ findUnique<T extends AccountFindUniqueArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
719
+
720
+ /**
721
+ * Find one Account that matches the filter or throw an error with `error.code='P2025'`
722
+ * if no matches were found.
723
+ * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account
724
+ * @example
725
+ * // Get one Account
726
+ * const account = await prisma.account.findUniqueOrThrow({
727
+ * where: {
728
+ * // ... provide filter here
729
+ * }
730
+ * })
731
+ */
732
+ findUniqueOrThrow<T extends AccountFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AccountFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
733
+
734
+ /**
735
+ * Find the first Account that matches the filter.
736
+ * Note, that providing `undefined` is treated as the value not being there.
737
+ * Read more here: https://pris.ly/d/null-undefined
738
+ * @param {AccountFindFirstArgs} args - Arguments to find a Account
739
+ * @example
740
+ * // Get one Account
741
+ * const account = await prisma.account.findFirst({
742
+ * where: {
743
+ * // ... provide filter here
744
+ * }
745
+ * })
746
+ */
747
+ findFirst<T extends AccountFindFirstArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
748
+
749
+ /**
750
+ * Find the first Account that matches the filter or
751
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
752
+ * Note, that providing `undefined` is treated as the value not being there.
753
+ * Read more here: https://pris.ly/d/null-undefined
754
+ * @param {AccountFindFirstOrThrowArgs} args - Arguments to find a Account
755
+ * @example
756
+ * // Get one Account
757
+ * const account = await prisma.account.findFirstOrThrow({
758
+ * where: {
759
+ * // ... provide filter here
760
+ * }
761
+ * })
762
+ */
763
+ findFirstOrThrow<T extends AccountFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AccountFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
764
+
765
+ /**
766
+ * Find zero or more Accounts that matches the filter.
767
+ * Note, that providing `undefined` is treated as the value not being there.
768
+ * Read more here: https://pris.ly/d/null-undefined
769
+ * @param {AccountFindManyArgs} args - Arguments to filter and select certain fields only.
770
+ * @example
771
+ * // Get all Accounts
772
+ * const accounts = await prisma.account.findMany()
773
+ *
774
+ * // Get first 10 Accounts
775
+ * const accounts = await prisma.account.findMany({ take: 10 })
776
+ *
777
+ * // Only select the `id`
778
+ * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } })
779
+ *
780
+ */
781
+ findMany<T extends AccountFindManyArgs>(args?: Prisma.SelectSubset<T, AccountFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
782
+
783
+ /**
784
+ * Create a Account.
785
+ * @param {AccountCreateArgs} args - Arguments to create a Account.
786
+ * @example
787
+ * // Create one Account
788
+ * const Account = await prisma.account.create({
789
+ * data: {
790
+ * // ... data to create a Account
791
+ * }
792
+ * })
793
+ *
794
+ */
795
+ create<T extends AccountCreateArgs>(args: Prisma.SelectSubset<T, AccountCreateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
796
+
797
+ /**
798
+ * Create many Accounts.
799
+ * @param {AccountCreateManyArgs} args - Arguments to create many Accounts.
800
+ * @example
801
+ * // Create many Accounts
802
+ * const account = await prisma.account.createMany({
803
+ * data: [
804
+ * // ... provide data here
805
+ * ]
806
+ * })
807
+ *
808
+ */
809
+ createMany<T extends AccountCreateManyArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
810
+
811
+ /**
812
+ * Create many Accounts and returns the data saved in the database.
813
+ * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts.
814
+ * @example
815
+ * // Create many Accounts
816
+ * const account = await prisma.account.createManyAndReturn({
817
+ * data: [
818
+ * // ... provide data here
819
+ * ]
820
+ * })
821
+ *
822
+ * // Create many Accounts and only return the `id`
823
+ * const accountWithIdOnly = await prisma.account.createManyAndReturn({
824
+ * select: { id: true },
825
+ * data: [
826
+ * // ... provide data here
827
+ * ]
828
+ * })
829
+ * Note, that providing `undefined` is treated as the value not being there.
830
+ * Read more here: https://pris.ly/d/null-undefined
831
+ *
832
+ */
833
+ createManyAndReturn<T extends AccountCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AccountCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
834
+
835
+ /**
836
+ * Delete a Account.
837
+ * @param {AccountDeleteArgs} args - Arguments to delete one Account.
838
+ * @example
839
+ * // Delete one Account
840
+ * const Account = await prisma.account.delete({
841
+ * where: {
842
+ * // ... filter to delete one Account
843
+ * }
844
+ * })
845
+ *
846
+ */
847
+ delete<T extends AccountDeleteArgs>(args: Prisma.SelectSubset<T, AccountDeleteArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
848
+
849
+ /**
850
+ * Update one Account.
851
+ * @param {AccountUpdateArgs} args - Arguments to update one Account.
852
+ * @example
853
+ * // Update one Account
854
+ * const account = await prisma.account.update({
855
+ * where: {
856
+ * // ... provide filter here
857
+ * },
858
+ * data: {
859
+ * // ... provide data here
860
+ * }
861
+ * })
862
+ *
863
+ */
864
+ update<T extends AccountUpdateArgs>(args: Prisma.SelectSubset<T, AccountUpdateArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
865
+
866
+ /**
867
+ * Delete zero or more Accounts.
868
+ * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete.
869
+ * @example
870
+ * // Delete a few Accounts
871
+ * const { count } = await prisma.account.deleteMany({
872
+ * where: {
873
+ * // ... provide filter here
874
+ * }
875
+ * })
876
+ *
877
+ */
878
+ deleteMany<T extends AccountDeleteManyArgs>(args?: Prisma.SelectSubset<T, AccountDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
879
+
880
+ /**
881
+ * Update zero or more Accounts.
882
+ * Note, that providing `undefined` is treated as the value not being there.
883
+ * Read more here: https://pris.ly/d/null-undefined
884
+ * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows.
885
+ * @example
886
+ * // Update many Accounts
887
+ * const account = await prisma.account.updateMany({
888
+ * where: {
889
+ * // ... provide filter here
890
+ * },
891
+ * data: {
892
+ * // ... provide data here
893
+ * }
894
+ * })
895
+ *
896
+ */
897
+ updateMany<T extends AccountUpdateManyArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
898
+
899
+ /**
900
+ * Update zero or more Accounts and returns the data updated in the database.
901
+ * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts.
902
+ * @example
903
+ * // Update many Accounts
904
+ * const account = await prisma.account.updateManyAndReturn({
905
+ * where: {
906
+ * // ... provide filter here
907
+ * },
908
+ * data: [
909
+ * // ... provide data here
910
+ * ]
911
+ * })
912
+ *
913
+ * // Update zero or more Accounts and only return the `id`
914
+ * const accountWithIdOnly = await prisma.account.updateManyAndReturn({
915
+ * select: { id: true },
916
+ * where: {
917
+ * // ... provide filter here
918
+ * },
919
+ * data: [
920
+ * // ... provide data here
921
+ * ]
922
+ * })
923
+ * Note, that providing `undefined` is treated as the value not being there.
924
+ * Read more here: https://pris.ly/d/null-undefined
925
+ *
926
+ */
927
+ updateManyAndReturn<T extends AccountUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AccountUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
928
+
929
+ /**
930
+ * Create or update one Account.
931
+ * @param {AccountUpsertArgs} args - Arguments to update or create a Account.
932
+ * @example
933
+ * // Update or create a Account
934
+ * const account = await prisma.account.upsert({
935
+ * create: {
936
+ * // ... data to create a Account
937
+ * },
938
+ * update: {
939
+ * // ... in case it already exists, update
940
+ * },
941
+ * where: {
942
+ * // ... the filter for the Account we want to update
943
+ * }
944
+ * })
945
+ */
946
+ upsert<T extends AccountUpsertArgs>(args: Prisma.SelectSubset<T, AccountUpsertArgs<ExtArgs>>): Prisma.Prisma__AccountClient<runtime.Types.Result.GetResult<Prisma.$AccountPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
947
+
948
+
949
+ /**
950
+ * Count the number of Accounts.
951
+ * Note, that providing `undefined` is treated as the value not being there.
952
+ * Read more here: https://pris.ly/d/null-undefined
953
+ * @param {AccountCountArgs} args - Arguments to filter Accounts to count.
954
+ * @example
955
+ * // Count the number of Accounts
956
+ * const count = await prisma.account.count({
957
+ * where: {
958
+ * // ... the filter for the Accounts we want to count
959
+ * }
960
+ * })
961
+ **/
962
+ count<T extends AccountCountArgs>(
963
+ args?: Prisma.Subset<T, AccountCountArgs>,
964
+ ): Prisma.PrismaPromise<
965
+ T extends runtime.Types.Utils.Record<'select', any>
966
+ ? T['select'] extends true
967
+ ? number
968
+ : Prisma.GetScalarType<T['select'], AccountCountAggregateOutputType>
969
+ : number
970
+ >
971
+
972
+ /**
973
+ * Allows you to perform aggregations operations on a Account.
974
+ * Note, that providing `undefined` is treated as the value not being there.
975
+ * Read more here: https://pris.ly/d/null-undefined
976
+ * @param {AccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
977
+ * @example
978
+ * // Ordered by age ascending
979
+ * // Where email contains prisma.io
980
+ * // Limited to the 10 users
981
+ * const aggregations = await prisma.user.aggregate({
982
+ * _avg: {
983
+ * age: true,
984
+ * },
985
+ * where: {
986
+ * email: {
987
+ * contains: "prisma.io",
988
+ * },
989
+ * },
990
+ * orderBy: {
991
+ * age: "asc",
992
+ * },
993
+ * take: 10,
994
+ * })
995
+ **/
996
+ aggregate<T extends AccountAggregateArgs>(args: Prisma.Subset<T, AccountAggregateArgs>): Prisma.PrismaPromise<GetAccountAggregateType<T>>
997
+
998
+ /**
999
+ * Group by Account.
1000
+ * Note, that providing `undefined` is treated as the value not being there.
1001
+ * Read more here: https://pris.ly/d/null-undefined
1002
+ * @param {AccountGroupByArgs} args - Group by arguments.
1003
+ * @example
1004
+ * // Group by city, order by createdAt, get count
1005
+ * const result = await prisma.user.groupBy({
1006
+ * by: ['city', 'createdAt'],
1007
+ * orderBy: {
1008
+ * createdAt: true
1009
+ * },
1010
+ * _count: {
1011
+ * _all: true
1012
+ * },
1013
+ * })
1014
+ *
1015
+ **/
1016
+ groupBy<
1017
+ T extends AccountGroupByArgs,
1018
+ HasSelectOrTake extends Prisma.Or<
1019
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1020
+ Prisma.Extends<'take', Prisma.Keys<T>>
1021
+ >,
1022
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1023
+ ? { orderBy: AccountGroupByArgs['orderBy'] }
1024
+ : { orderBy?: AccountGroupByArgs['orderBy'] },
1025
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1026
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1027
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1028
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1029
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1030
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1031
+ InputErrors extends ByEmpty extends Prisma.True
1032
+ ? `Error: "by" must not be empty.`
1033
+ : HavingValid extends Prisma.False
1034
+ ? {
1035
+ [P in HavingFields]: P extends ByFields
1036
+ ? never
1037
+ : P extends string
1038
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1039
+ : [
1040
+ Error,
1041
+ 'Field ',
1042
+ P,
1043
+ ` in "having" needs to be provided in "by"`,
1044
+ ]
1045
+ }[HavingFields]
1046
+ : 'take' extends Prisma.Keys<T>
1047
+ ? 'orderBy' extends Prisma.Keys<T>
1048
+ ? ByValid extends Prisma.True
1049
+ ? {}
1050
+ : {
1051
+ [P in OrderFields]: P extends ByFields
1052
+ ? never
1053
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1054
+ }[OrderFields]
1055
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1056
+ : 'skip' extends Prisma.Keys<T>
1057
+ ? 'orderBy' extends Prisma.Keys<T>
1058
+ ? ByValid extends Prisma.True
1059
+ ? {}
1060
+ : {
1061
+ [P in OrderFields]: P extends ByFields
1062
+ ? never
1063
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1064
+ }[OrderFields]
1065
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1066
+ : ByValid extends Prisma.True
1067
+ ? {}
1068
+ : {
1069
+ [P in OrderFields]: P extends ByFields
1070
+ ? never
1071
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1072
+ }[OrderFields]
1073
+ >(args: Prisma.SubsetIntersection<T, AccountGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAccountGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1074
+ /**
1075
+ * Fields of the Account model
1076
+ */
1077
+ readonly fields: AccountFieldRefs;
1078
+ }
1079
+
1080
+ /**
1081
+ * The delegate class that acts as a "Promise-like" for Account.
1082
+ * Why is this prefixed with `Prisma__`?
1083
+ * Because we want to prevent naming conflicts as mentioned in
1084
+ * https://github.com/prisma/prisma-client-js/issues/707
1085
+ */
1086
+ export interface Prisma__AccountClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1087
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1088
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1089
+ /**
1090
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1091
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1092
+ * @param onrejected The callback to execute when the Promise is rejected.
1093
+ * @returns A Promise for the completion of which ever callback is executed.
1094
+ */
1095
+ 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>
1096
+ /**
1097
+ * Attaches a callback for only the rejection of the Promise.
1098
+ * @param onrejected The callback to execute when the Promise is rejected.
1099
+ * @returns A Promise for the completion of the callback.
1100
+ */
1101
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1102
+ /**
1103
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1104
+ * resolved value cannot be modified from the callback.
1105
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1106
+ * @returns A Promise for the completion of the callback.
1107
+ */
1108
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1109
+ }
1110
+
1111
+
1112
+
1113
+
1114
+ /**
1115
+ * Fields of the Account model
1116
+ */
1117
+ export interface AccountFieldRefs {
1118
+ readonly id: Prisma.FieldRef<"Account", 'String'>
1119
+ readonly userId: Prisma.FieldRef<"Account", 'String'>
1120
+ readonly provider: Prisma.FieldRef<"Account", 'String'>
1121
+ readonly providerAccountId: Prisma.FieldRef<"Account", 'String'>
1122
+ readonly refreshToken: Prisma.FieldRef<"Account", 'String'>
1123
+ readonly accessToken: Prisma.FieldRef<"Account", 'String'>
1124
+ readonly expiresAt: Prisma.FieldRef<"Account", 'Int'>
1125
+ readonly tokenType: Prisma.FieldRef<"Account", 'String'>
1126
+ readonly scope: Prisma.FieldRef<"Account", 'String'>
1127
+ }
1128
+
1129
+
1130
+ // Custom InputTypes
1131
+ /**
1132
+ * Account findUnique
1133
+ */
1134
+ export type AccountFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1135
+ /**
1136
+ * Select specific fields to fetch from the Account
1137
+ */
1138
+ select?: Prisma.AccountSelect<ExtArgs> | null
1139
+ /**
1140
+ * Omit specific fields from the Account
1141
+ */
1142
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1143
+ /**
1144
+ * Choose, which related nodes to fetch as well
1145
+ */
1146
+ include?: Prisma.AccountInclude<ExtArgs> | null
1147
+ /**
1148
+ * Filter, which Account to fetch.
1149
+ */
1150
+ where: Prisma.AccountWhereUniqueInput
1151
+ }
1152
+
1153
+ /**
1154
+ * Account findUniqueOrThrow
1155
+ */
1156
+ export type AccountFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1157
+ /**
1158
+ * Select specific fields to fetch from the Account
1159
+ */
1160
+ select?: Prisma.AccountSelect<ExtArgs> | null
1161
+ /**
1162
+ * Omit specific fields from the Account
1163
+ */
1164
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1165
+ /**
1166
+ * Choose, which related nodes to fetch as well
1167
+ */
1168
+ include?: Prisma.AccountInclude<ExtArgs> | null
1169
+ /**
1170
+ * Filter, which Account to fetch.
1171
+ */
1172
+ where: Prisma.AccountWhereUniqueInput
1173
+ }
1174
+
1175
+ /**
1176
+ * Account findFirst
1177
+ */
1178
+ export type AccountFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ /**
1180
+ * Select specific fields to fetch from the Account
1181
+ */
1182
+ select?: Prisma.AccountSelect<ExtArgs> | null
1183
+ /**
1184
+ * Omit specific fields from the Account
1185
+ */
1186
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1187
+ /**
1188
+ * Choose, which related nodes to fetch as well
1189
+ */
1190
+ include?: Prisma.AccountInclude<ExtArgs> | null
1191
+ /**
1192
+ * Filter, which Account to fetch.
1193
+ */
1194
+ where?: Prisma.AccountWhereInput
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1197
+ *
1198
+ * Determine the order of Accounts to fetch.
1199
+ */
1200
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1201
+ /**
1202
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1203
+ *
1204
+ * Sets the position for searching for Accounts.
1205
+ */
1206
+ cursor?: Prisma.AccountWhereUniqueInput
1207
+ /**
1208
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1209
+ *
1210
+ * Take `±n` Accounts from the position of the cursor.
1211
+ */
1212
+ take?: number
1213
+ /**
1214
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1215
+ *
1216
+ * Skip the first `n` Accounts.
1217
+ */
1218
+ skip?: number
1219
+ /**
1220
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1221
+ *
1222
+ * Filter by unique combinations of Accounts.
1223
+ */
1224
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1225
+ }
1226
+
1227
+ /**
1228
+ * Account findFirstOrThrow
1229
+ */
1230
+ export type AccountFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1231
+ /**
1232
+ * Select specific fields to fetch from the Account
1233
+ */
1234
+ select?: Prisma.AccountSelect<ExtArgs> | null
1235
+ /**
1236
+ * Omit specific fields from the Account
1237
+ */
1238
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1239
+ /**
1240
+ * Choose, which related nodes to fetch as well
1241
+ */
1242
+ include?: Prisma.AccountInclude<ExtArgs> | null
1243
+ /**
1244
+ * Filter, which Account to fetch.
1245
+ */
1246
+ where?: Prisma.AccountWhereInput
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1249
+ *
1250
+ * Determine the order of Accounts to fetch.
1251
+ */
1252
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1253
+ /**
1254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1255
+ *
1256
+ * Sets the position for searching for Accounts.
1257
+ */
1258
+ cursor?: Prisma.AccountWhereUniqueInput
1259
+ /**
1260
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1261
+ *
1262
+ * Take `±n` Accounts from the position of the cursor.
1263
+ */
1264
+ take?: number
1265
+ /**
1266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1267
+ *
1268
+ * Skip the first `n` Accounts.
1269
+ */
1270
+ skip?: number
1271
+ /**
1272
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1273
+ *
1274
+ * Filter by unique combinations of Accounts.
1275
+ */
1276
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1277
+ }
1278
+
1279
+ /**
1280
+ * Account findMany
1281
+ */
1282
+ export type AccountFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1283
+ /**
1284
+ * Select specific fields to fetch from the Account
1285
+ */
1286
+ select?: Prisma.AccountSelect<ExtArgs> | null
1287
+ /**
1288
+ * Omit specific fields from the Account
1289
+ */
1290
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1291
+ /**
1292
+ * Choose, which related nodes to fetch as well
1293
+ */
1294
+ include?: Prisma.AccountInclude<ExtArgs> | null
1295
+ /**
1296
+ * Filter, which Accounts to fetch.
1297
+ */
1298
+ where?: Prisma.AccountWhereInput
1299
+ /**
1300
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1301
+ *
1302
+ * Determine the order of Accounts to fetch.
1303
+ */
1304
+ orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[]
1305
+ /**
1306
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1307
+ *
1308
+ * Sets the position for listing Accounts.
1309
+ */
1310
+ cursor?: Prisma.AccountWhereUniqueInput
1311
+ /**
1312
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1313
+ *
1314
+ * Take `±n` Accounts from the position of the cursor.
1315
+ */
1316
+ take?: number
1317
+ /**
1318
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1319
+ *
1320
+ * Skip the first `n` Accounts.
1321
+ */
1322
+ skip?: number
1323
+ /**
1324
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1325
+ *
1326
+ * Filter by unique combinations of Accounts.
1327
+ */
1328
+ distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[]
1329
+ }
1330
+
1331
+ /**
1332
+ * Account create
1333
+ */
1334
+ export type AccountCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1335
+ /**
1336
+ * Select specific fields to fetch from the Account
1337
+ */
1338
+ select?: Prisma.AccountSelect<ExtArgs> | null
1339
+ /**
1340
+ * Omit specific fields from the Account
1341
+ */
1342
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1343
+ /**
1344
+ * Choose, which related nodes to fetch as well
1345
+ */
1346
+ include?: Prisma.AccountInclude<ExtArgs> | null
1347
+ /**
1348
+ * The data needed to create a Account.
1349
+ */
1350
+ data: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1351
+ }
1352
+
1353
+ /**
1354
+ * Account createMany
1355
+ */
1356
+ export type AccountCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1357
+ /**
1358
+ * The data used to create many Accounts.
1359
+ */
1360
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1361
+ skipDuplicates?: boolean
1362
+ }
1363
+
1364
+ /**
1365
+ * Account createManyAndReturn
1366
+ */
1367
+ export type AccountCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1368
+ /**
1369
+ * Select specific fields to fetch from the Account
1370
+ */
1371
+ select?: Prisma.AccountSelectCreateManyAndReturn<ExtArgs> | null
1372
+ /**
1373
+ * Omit specific fields from the Account
1374
+ */
1375
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1376
+ /**
1377
+ * The data used to create many Accounts.
1378
+ */
1379
+ data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[]
1380
+ skipDuplicates?: boolean
1381
+ /**
1382
+ * Choose, which related nodes to fetch as well
1383
+ */
1384
+ include?: Prisma.AccountIncludeCreateManyAndReturn<ExtArgs> | null
1385
+ }
1386
+
1387
+ /**
1388
+ * Account update
1389
+ */
1390
+ export type AccountUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1391
+ /**
1392
+ * Select specific fields to fetch from the Account
1393
+ */
1394
+ select?: Prisma.AccountSelect<ExtArgs> | null
1395
+ /**
1396
+ * Omit specific fields from the Account
1397
+ */
1398
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1399
+ /**
1400
+ * Choose, which related nodes to fetch as well
1401
+ */
1402
+ include?: Prisma.AccountInclude<ExtArgs> | null
1403
+ /**
1404
+ * The data needed to update a Account.
1405
+ */
1406
+ data: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1407
+ /**
1408
+ * Choose, which Account to update.
1409
+ */
1410
+ where: Prisma.AccountWhereUniqueInput
1411
+ }
1412
+
1413
+ /**
1414
+ * Account updateMany
1415
+ */
1416
+ export type AccountUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1417
+ /**
1418
+ * The data used to update Accounts.
1419
+ */
1420
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1421
+ /**
1422
+ * Filter which Accounts to update
1423
+ */
1424
+ where?: Prisma.AccountWhereInput
1425
+ /**
1426
+ * Limit how many Accounts to update.
1427
+ */
1428
+ limit?: number
1429
+ }
1430
+
1431
+ /**
1432
+ * Account updateManyAndReturn
1433
+ */
1434
+ export type AccountUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1435
+ /**
1436
+ * Select specific fields to fetch from the Account
1437
+ */
1438
+ select?: Prisma.AccountSelectUpdateManyAndReturn<ExtArgs> | null
1439
+ /**
1440
+ * Omit specific fields from the Account
1441
+ */
1442
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1443
+ /**
1444
+ * The data used to update Accounts.
1445
+ */
1446
+ data: Prisma.XOR<Prisma.AccountUpdateManyMutationInput, Prisma.AccountUncheckedUpdateManyInput>
1447
+ /**
1448
+ * Filter which Accounts to update
1449
+ */
1450
+ where?: Prisma.AccountWhereInput
1451
+ /**
1452
+ * Limit how many Accounts to update.
1453
+ */
1454
+ limit?: number
1455
+ /**
1456
+ * Choose, which related nodes to fetch as well
1457
+ */
1458
+ include?: Prisma.AccountIncludeUpdateManyAndReturn<ExtArgs> | null
1459
+ }
1460
+
1461
+ /**
1462
+ * Account upsert
1463
+ */
1464
+ export type AccountUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1465
+ /**
1466
+ * Select specific fields to fetch from the Account
1467
+ */
1468
+ select?: Prisma.AccountSelect<ExtArgs> | null
1469
+ /**
1470
+ * Omit specific fields from the Account
1471
+ */
1472
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1473
+ /**
1474
+ * Choose, which related nodes to fetch as well
1475
+ */
1476
+ include?: Prisma.AccountInclude<ExtArgs> | null
1477
+ /**
1478
+ * The filter to search for the Account to update in case it exists.
1479
+ */
1480
+ where: Prisma.AccountWhereUniqueInput
1481
+ /**
1482
+ * In case the Account found by the `where` argument doesn't exist, create a new Account with this data.
1483
+ */
1484
+ create: Prisma.XOR<Prisma.AccountCreateInput, Prisma.AccountUncheckedCreateInput>
1485
+ /**
1486
+ * In case the Account was found with the provided `where` argument, update it with this data.
1487
+ */
1488
+ update: Prisma.XOR<Prisma.AccountUpdateInput, Prisma.AccountUncheckedUpdateInput>
1489
+ }
1490
+
1491
+ /**
1492
+ * Account delete
1493
+ */
1494
+ export type AccountDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1495
+ /**
1496
+ * Select specific fields to fetch from the Account
1497
+ */
1498
+ select?: Prisma.AccountSelect<ExtArgs> | null
1499
+ /**
1500
+ * Omit specific fields from the Account
1501
+ */
1502
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1503
+ /**
1504
+ * Choose, which related nodes to fetch as well
1505
+ */
1506
+ include?: Prisma.AccountInclude<ExtArgs> | null
1507
+ /**
1508
+ * Filter which Account to delete.
1509
+ */
1510
+ where: Prisma.AccountWhereUniqueInput
1511
+ }
1512
+
1513
+ /**
1514
+ * Account deleteMany
1515
+ */
1516
+ export type AccountDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1517
+ /**
1518
+ * Filter which Accounts to delete
1519
+ */
1520
+ where?: Prisma.AccountWhereInput
1521
+ /**
1522
+ * Limit how many Accounts to delete.
1523
+ */
1524
+ limit?: number
1525
+ }
1526
+
1527
+ /**
1528
+ * Account without action
1529
+ */
1530
+ export type AccountDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1531
+ /**
1532
+ * Select specific fields to fetch from the Account
1533
+ */
1534
+ select?: Prisma.AccountSelect<ExtArgs> | null
1535
+ /**
1536
+ * Omit specific fields from the Account
1537
+ */
1538
+ omit?: Prisma.AccountOmit<ExtArgs> | null
1539
+ /**
1540
+ * Choose, which related nodes to fetch as well
1541
+ */
1542
+ include?: Prisma.AccountInclude<ExtArgs> | null
1543
+ }