@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,1415 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Session` 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 Session
17
+ *
18
+ */
19
+ export type SessionModel = runtime.Types.Result.DefaultSelection<Prisma.$SessionPayload>
20
+
21
+ export type AggregateSession = {
22
+ _count: SessionCountAggregateOutputType | null
23
+ _min: SessionMinAggregateOutputType | null
24
+ _max: SessionMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type SessionMinAggregateOutputType = {
28
+ id: string | null
29
+ userId: string | null
30
+ token: string | null
31
+ expiresAt: Date | null
32
+ createdAt: Date | null
33
+ ipAddress: string | null
34
+ userAgent: string | null
35
+ }
36
+
37
+ export type SessionMaxAggregateOutputType = {
38
+ id: string | null
39
+ userId: string | null
40
+ token: string | null
41
+ expiresAt: Date | null
42
+ createdAt: Date | null
43
+ ipAddress: string | null
44
+ userAgent: string | null
45
+ }
46
+
47
+ export type SessionCountAggregateOutputType = {
48
+ id: number
49
+ userId: number
50
+ token: number
51
+ expiresAt: number
52
+ createdAt: number
53
+ ipAddress: number
54
+ userAgent: number
55
+ _all: number
56
+ }
57
+
58
+
59
+ export type SessionMinAggregateInputType = {
60
+ id?: true
61
+ userId?: true
62
+ token?: true
63
+ expiresAt?: true
64
+ createdAt?: true
65
+ ipAddress?: true
66
+ userAgent?: true
67
+ }
68
+
69
+ export type SessionMaxAggregateInputType = {
70
+ id?: true
71
+ userId?: true
72
+ token?: true
73
+ expiresAt?: true
74
+ createdAt?: true
75
+ ipAddress?: true
76
+ userAgent?: true
77
+ }
78
+
79
+ export type SessionCountAggregateInputType = {
80
+ id?: true
81
+ userId?: true
82
+ token?: true
83
+ expiresAt?: true
84
+ createdAt?: true
85
+ ipAddress?: true
86
+ userAgent?: true
87
+ _all?: true
88
+ }
89
+
90
+ export type SessionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
91
+ /**
92
+ * Filter which Session to aggregate.
93
+ */
94
+ where?: Prisma.SessionWhereInput
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
97
+ *
98
+ * Determine the order of Sessions to fetch.
99
+ */
100
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
103
+ *
104
+ * Sets the start position
105
+ */
106
+ cursor?: Prisma.SessionWhereUniqueInput
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Take `±n` Sessions from the position of the cursor.
111
+ */
112
+ take?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
115
+ *
116
+ * Skip the first `n` Sessions.
117
+ */
118
+ skip?: number
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Count returned Sessions
123
+ **/
124
+ _count?: true | SessionCountAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to find the minimum value
129
+ **/
130
+ _min?: SessionMinAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the maximum value
135
+ **/
136
+ _max?: SessionMaxAggregateInputType
137
+ }
138
+
139
+ export type GetSessionAggregateType<T extends SessionAggregateArgs> = {
140
+ [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count'
141
+ ? T[P] extends true
142
+ ? number
143
+ : Prisma.GetScalarType<T[P], AggregateSession[P]>
144
+ : Prisma.GetScalarType<T[P], AggregateSession[P]>
145
+ }
146
+
147
+
148
+
149
+
150
+ export type SessionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ where?: Prisma.SessionWhereInput
152
+ orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[]
153
+ by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum
154
+ having?: Prisma.SessionScalarWhereWithAggregatesInput
155
+ take?: number
156
+ skip?: number
157
+ _count?: SessionCountAggregateInputType | true
158
+ _min?: SessionMinAggregateInputType
159
+ _max?: SessionMaxAggregateInputType
160
+ }
161
+
162
+ export type SessionGroupByOutputType = {
163
+ id: string
164
+ userId: string
165
+ token: string
166
+ expiresAt: Date
167
+ createdAt: Date
168
+ ipAddress: string | null
169
+ userAgent: string | null
170
+ _count: SessionCountAggregateOutputType | null
171
+ _min: SessionMinAggregateOutputType | null
172
+ _max: SessionMaxAggregateOutputType | null
173
+ }
174
+
175
+ type GetSessionGroupByPayload<T extends SessionGroupByArgs> = Prisma.PrismaPromise<
176
+ Array<
177
+ Prisma.PickEnumerable<SessionGroupByOutputType, T['by']> &
178
+ {
179
+ [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count'
180
+ ? T[P] extends boolean
181
+ ? number
182
+ : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>
183
+ : Prisma.GetScalarType<T[P], SessionGroupByOutputType[P]>
184
+ }
185
+ >
186
+ >
187
+
188
+
189
+
190
+ export type SessionWhereInput = {
191
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
192
+ OR?: Prisma.SessionWhereInput[]
193
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
194
+ id?: Prisma.StringFilter<"Session"> | string
195
+ userId?: Prisma.StringFilter<"Session"> | string
196
+ token?: Prisma.StringFilter<"Session"> | string
197
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
198
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
199
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
200
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
201
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
202
+ }
203
+
204
+ export type SessionOrderByWithRelationInput = {
205
+ id?: Prisma.SortOrder
206
+ userId?: Prisma.SortOrder
207
+ token?: Prisma.SortOrder
208
+ expiresAt?: Prisma.SortOrder
209
+ createdAt?: Prisma.SortOrder
210
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
211
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
212
+ user?: Prisma.UserOrderByWithRelationInput
213
+ }
214
+
215
+ export type SessionWhereUniqueInput = Prisma.AtLeast<{
216
+ id?: string
217
+ token?: string
218
+ AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
219
+ OR?: Prisma.SessionWhereInput[]
220
+ NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[]
221
+ userId?: Prisma.StringFilter<"Session"> | string
222
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
223
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
224
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
225
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
226
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
227
+ }, "id" | "token">
228
+
229
+ export type SessionOrderByWithAggregationInput = {
230
+ id?: Prisma.SortOrder
231
+ userId?: Prisma.SortOrder
232
+ token?: Prisma.SortOrder
233
+ expiresAt?: Prisma.SortOrder
234
+ createdAt?: Prisma.SortOrder
235
+ ipAddress?: Prisma.SortOrderInput | Prisma.SortOrder
236
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
237
+ _count?: Prisma.SessionCountOrderByAggregateInput
238
+ _max?: Prisma.SessionMaxOrderByAggregateInput
239
+ _min?: Prisma.SessionMinOrderByAggregateInput
240
+ }
241
+
242
+ export type SessionScalarWhereWithAggregatesInput = {
243
+ AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[]
244
+ OR?: Prisma.SessionScalarWhereWithAggregatesInput[]
245
+ NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[]
246
+ id?: Prisma.StringWithAggregatesFilter<"Session"> | string
247
+ userId?: Prisma.StringWithAggregatesFilter<"Session"> | string
248
+ token?: Prisma.StringWithAggregatesFilter<"Session"> | string
249
+ expiresAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
250
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string
251
+ ipAddress?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null
252
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"Session"> | string | null
253
+ }
254
+
255
+ export type SessionCreateInput = {
256
+ id?: string
257
+ token: string
258
+ expiresAt: Date | string
259
+ createdAt?: Date | string
260
+ ipAddress?: string | null
261
+ userAgent?: string | null
262
+ user: Prisma.UserCreateNestedOneWithoutSessionsInput
263
+ }
264
+
265
+ export type SessionUncheckedCreateInput = {
266
+ id?: string
267
+ userId: string
268
+ token: string
269
+ expiresAt: Date | string
270
+ createdAt?: Date | string
271
+ ipAddress?: string | null
272
+ userAgent?: string | null
273
+ }
274
+
275
+ export type SessionUpdateInput = {
276
+ id?: Prisma.StringFieldUpdateOperationsInput | string
277
+ token?: Prisma.StringFieldUpdateOperationsInput | string
278
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
279
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
280
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
281
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
282
+ user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput
283
+ }
284
+
285
+ export type SessionUncheckedUpdateInput = {
286
+ id?: Prisma.StringFieldUpdateOperationsInput | string
287
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
288
+ token?: Prisma.StringFieldUpdateOperationsInput | string
289
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
290
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
291
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
292
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
293
+ }
294
+
295
+ export type SessionCreateManyInput = {
296
+ id?: string
297
+ userId: string
298
+ token: string
299
+ expiresAt: Date | string
300
+ createdAt?: Date | string
301
+ ipAddress?: string | null
302
+ userAgent?: string | null
303
+ }
304
+
305
+ export type SessionUpdateManyMutationInput = {
306
+ id?: Prisma.StringFieldUpdateOperationsInput | string
307
+ token?: Prisma.StringFieldUpdateOperationsInput | string
308
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
309
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
310
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
311
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
312
+ }
313
+
314
+ export type SessionUncheckedUpdateManyInput = {
315
+ id?: Prisma.StringFieldUpdateOperationsInput | string
316
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
317
+ token?: Prisma.StringFieldUpdateOperationsInput | string
318
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
319
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
320
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
321
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
322
+ }
323
+
324
+ export type SessionListRelationFilter = {
325
+ every?: Prisma.SessionWhereInput
326
+ some?: Prisma.SessionWhereInput
327
+ none?: Prisma.SessionWhereInput
328
+ }
329
+
330
+ export type SessionOrderByRelationAggregateInput = {
331
+ _count?: Prisma.SortOrder
332
+ }
333
+
334
+ export type SessionCountOrderByAggregateInput = {
335
+ id?: Prisma.SortOrder
336
+ userId?: Prisma.SortOrder
337
+ token?: Prisma.SortOrder
338
+ expiresAt?: Prisma.SortOrder
339
+ createdAt?: Prisma.SortOrder
340
+ ipAddress?: Prisma.SortOrder
341
+ userAgent?: Prisma.SortOrder
342
+ }
343
+
344
+ export type SessionMaxOrderByAggregateInput = {
345
+ id?: Prisma.SortOrder
346
+ userId?: Prisma.SortOrder
347
+ token?: Prisma.SortOrder
348
+ expiresAt?: Prisma.SortOrder
349
+ createdAt?: Prisma.SortOrder
350
+ ipAddress?: Prisma.SortOrder
351
+ userAgent?: Prisma.SortOrder
352
+ }
353
+
354
+ export type SessionMinOrderByAggregateInput = {
355
+ id?: Prisma.SortOrder
356
+ userId?: Prisma.SortOrder
357
+ token?: Prisma.SortOrder
358
+ expiresAt?: Prisma.SortOrder
359
+ createdAt?: Prisma.SortOrder
360
+ ipAddress?: Prisma.SortOrder
361
+ userAgent?: Prisma.SortOrder
362
+ }
363
+
364
+ export type SessionCreateNestedManyWithoutUserInput = {
365
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
366
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
367
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope
368
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
369
+ }
370
+
371
+ export type SessionUncheckedCreateNestedManyWithoutUserInput = {
372
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
373
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
374
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope
375
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
376
+ }
377
+
378
+ export type SessionUpdateManyWithoutUserNestedInput = {
379
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
380
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
381
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[]
382
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope
383
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
384
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
385
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
386
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
387
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[]
388
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[]
389
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
390
+ }
391
+
392
+ export type SessionUncheckedUpdateManyWithoutUserNestedInput = {
393
+ create?: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput> | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[]
394
+ connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[]
395
+ upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[]
396
+ createMany?: Prisma.SessionCreateManyUserInputEnvelope
397
+ set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
398
+ disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
399
+ delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
400
+ connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[]
401
+ update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[]
402
+ updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[]
403
+ deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
404
+ }
405
+
406
+ export type SessionCreateWithoutUserInput = {
407
+ id?: string
408
+ token: string
409
+ expiresAt: Date | string
410
+ createdAt?: Date | string
411
+ ipAddress?: string | null
412
+ userAgent?: string | null
413
+ }
414
+
415
+ export type SessionUncheckedCreateWithoutUserInput = {
416
+ id?: string
417
+ token: string
418
+ expiresAt: Date | string
419
+ createdAt?: Date | string
420
+ ipAddress?: string | null
421
+ userAgent?: string | null
422
+ }
423
+
424
+ export type SessionCreateOrConnectWithoutUserInput = {
425
+ where: Prisma.SessionWhereUniqueInput
426
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>
427
+ }
428
+
429
+ export type SessionCreateManyUserInputEnvelope = {
430
+ data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[]
431
+ skipDuplicates?: boolean
432
+ }
433
+
434
+ export type SessionUpsertWithWhereUniqueWithoutUserInput = {
435
+ where: Prisma.SessionWhereUniqueInput
436
+ update: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>
437
+ create: Prisma.XOR<Prisma.SessionCreateWithoutUserInput, Prisma.SessionUncheckedCreateWithoutUserInput>
438
+ }
439
+
440
+ export type SessionUpdateWithWhereUniqueWithoutUserInput = {
441
+ where: Prisma.SessionWhereUniqueInput
442
+ data: Prisma.XOR<Prisma.SessionUpdateWithoutUserInput, Prisma.SessionUncheckedUpdateWithoutUserInput>
443
+ }
444
+
445
+ export type SessionUpdateManyWithWhereWithoutUserInput = {
446
+ where: Prisma.SessionScalarWhereInput
447
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyWithoutUserInput>
448
+ }
449
+
450
+ export type SessionScalarWhereInput = {
451
+ AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
452
+ OR?: Prisma.SessionScalarWhereInput[]
453
+ NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[]
454
+ id?: Prisma.StringFilter<"Session"> | string
455
+ userId?: Prisma.StringFilter<"Session"> | string
456
+ token?: Prisma.StringFilter<"Session"> | string
457
+ expiresAt?: Prisma.DateTimeFilter<"Session"> | Date | string
458
+ createdAt?: Prisma.DateTimeFilter<"Session"> | Date | string
459
+ ipAddress?: Prisma.StringNullableFilter<"Session"> | string | null
460
+ userAgent?: Prisma.StringNullableFilter<"Session"> | string | null
461
+ }
462
+
463
+ export type SessionCreateManyUserInput = {
464
+ id?: string
465
+ token: string
466
+ expiresAt: Date | string
467
+ createdAt?: Date | string
468
+ ipAddress?: string | null
469
+ userAgent?: string | null
470
+ }
471
+
472
+ export type SessionUpdateWithoutUserInput = {
473
+ id?: Prisma.StringFieldUpdateOperationsInput | string
474
+ token?: Prisma.StringFieldUpdateOperationsInput | string
475
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
476
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
477
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
478
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
479
+ }
480
+
481
+ export type SessionUncheckedUpdateWithoutUserInput = {
482
+ id?: Prisma.StringFieldUpdateOperationsInput | string
483
+ token?: Prisma.StringFieldUpdateOperationsInput | string
484
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
485
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
486
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
487
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
488
+ }
489
+
490
+ export type SessionUncheckedUpdateManyWithoutUserInput = {
491
+ id?: Prisma.StringFieldUpdateOperationsInput | string
492
+ token?: Prisma.StringFieldUpdateOperationsInput | string
493
+ expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
494
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
495
+ ipAddress?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
496
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
497
+ }
498
+
499
+
500
+
501
+ export type SessionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
502
+ id?: boolean
503
+ userId?: boolean
504
+ token?: boolean
505
+ expiresAt?: boolean
506
+ createdAt?: boolean
507
+ ipAddress?: boolean
508
+ userAgent?: boolean
509
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
510
+ }, ExtArgs["result"]["session"]>
511
+
512
+ export type SessionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
513
+ id?: boolean
514
+ userId?: boolean
515
+ token?: boolean
516
+ expiresAt?: boolean
517
+ createdAt?: boolean
518
+ ipAddress?: boolean
519
+ userAgent?: boolean
520
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
521
+ }, ExtArgs["result"]["session"]>
522
+
523
+ export type SessionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
524
+ id?: boolean
525
+ userId?: boolean
526
+ token?: boolean
527
+ expiresAt?: boolean
528
+ createdAt?: boolean
529
+ ipAddress?: boolean
530
+ userAgent?: boolean
531
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
532
+ }, ExtArgs["result"]["session"]>
533
+
534
+ export type SessionSelectScalar = {
535
+ id?: boolean
536
+ userId?: boolean
537
+ token?: boolean
538
+ expiresAt?: boolean
539
+ createdAt?: boolean
540
+ ipAddress?: boolean
541
+ userAgent?: boolean
542
+ }
543
+
544
+ export type SessionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "token" | "expiresAt" | "createdAt" | "ipAddress" | "userAgent", ExtArgs["result"]["session"]>
545
+ export type SessionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
546
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
547
+ }
548
+ export type SessionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
549
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
550
+ }
551
+ export type SessionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
552
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
553
+ }
554
+
555
+ export type $SessionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
556
+ name: "Session"
557
+ objects: {
558
+ user: Prisma.$UserPayload<ExtArgs>
559
+ }
560
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
561
+ id: string
562
+ userId: string
563
+ token: string
564
+ expiresAt: Date
565
+ createdAt: Date
566
+ ipAddress: string | null
567
+ userAgent: string | null
568
+ }, ExtArgs["result"]["session"]>
569
+ composites: {}
570
+ }
571
+
572
+ export type SessionGetPayload<S extends boolean | null | undefined | SessionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SessionPayload, S>
573
+
574
+ export type SessionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
575
+ Omit<SessionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
576
+ select?: SessionCountAggregateInputType | true
577
+ }
578
+
579
+ export interface SessionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
580
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Session'], meta: { name: 'Session' } }
581
+ /**
582
+ * Find zero or one Session that matches the filter.
583
+ * @param {SessionFindUniqueArgs} args - Arguments to find a Session
584
+ * @example
585
+ * // Get one Session
586
+ * const session = await prisma.session.findUnique({
587
+ * where: {
588
+ * // ... provide filter here
589
+ * }
590
+ * })
591
+ */
592
+ findUnique<T extends SessionFindUniqueArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
593
+
594
+ /**
595
+ * Find one Session that matches the filter or throw an error with `error.code='P2025'`
596
+ * if no matches were found.
597
+ * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session
598
+ * @example
599
+ * // Get one Session
600
+ * const session = await prisma.session.findUniqueOrThrow({
601
+ * where: {
602
+ * // ... provide filter here
603
+ * }
604
+ * })
605
+ */
606
+ findUniqueOrThrow<T extends SessionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SessionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
607
+
608
+ /**
609
+ * Find the first Session that matches the filter.
610
+ * Note, that providing `undefined` is treated as the value not being there.
611
+ * Read more here: https://pris.ly/d/null-undefined
612
+ * @param {SessionFindFirstArgs} args - Arguments to find a Session
613
+ * @example
614
+ * // Get one Session
615
+ * const session = await prisma.session.findFirst({
616
+ * where: {
617
+ * // ... provide filter here
618
+ * }
619
+ * })
620
+ */
621
+ findFirst<T extends SessionFindFirstArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
622
+
623
+ /**
624
+ * Find the first Session that matches the filter or
625
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
626
+ * Note, that providing `undefined` is treated as the value not being there.
627
+ * Read more here: https://pris.ly/d/null-undefined
628
+ * @param {SessionFindFirstOrThrowArgs} args - Arguments to find a Session
629
+ * @example
630
+ * // Get one Session
631
+ * const session = await prisma.session.findFirstOrThrow({
632
+ * where: {
633
+ * // ... provide filter here
634
+ * }
635
+ * })
636
+ */
637
+ findFirstOrThrow<T extends SessionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SessionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
638
+
639
+ /**
640
+ * Find zero or more Sessions that matches the filter.
641
+ * Note, that providing `undefined` is treated as the value not being there.
642
+ * Read more here: https://pris.ly/d/null-undefined
643
+ * @param {SessionFindManyArgs} args - Arguments to filter and select certain fields only.
644
+ * @example
645
+ * // Get all Sessions
646
+ * const sessions = await prisma.session.findMany()
647
+ *
648
+ * // Get first 10 Sessions
649
+ * const sessions = await prisma.session.findMany({ take: 10 })
650
+ *
651
+ * // Only select the `id`
652
+ * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } })
653
+ *
654
+ */
655
+ findMany<T extends SessionFindManyArgs>(args?: Prisma.SelectSubset<T, SessionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
656
+
657
+ /**
658
+ * Create a Session.
659
+ * @param {SessionCreateArgs} args - Arguments to create a Session.
660
+ * @example
661
+ * // Create one Session
662
+ * const Session = await prisma.session.create({
663
+ * data: {
664
+ * // ... data to create a Session
665
+ * }
666
+ * })
667
+ *
668
+ */
669
+ create<T extends SessionCreateArgs>(args: Prisma.SelectSubset<T, SessionCreateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
670
+
671
+ /**
672
+ * Create many Sessions.
673
+ * @param {SessionCreateManyArgs} args - Arguments to create many Sessions.
674
+ * @example
675
+ * // Create many Sessions
676
+ * const session = await prisma.session.createMany({
677
+ * data: [
678
+ * // ... provide data here
679
+ * ]
680
+ * })
681
+ *
682
+ */
683
+ createMany<T extends SessionCreateManyArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
684
+
685
+ /**
686
+ * Create many Sessions and returns the data saved in the database.
687
+ * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions.
688
+ * @example
689
+ * // Create many Sessions
690
+ * const session = await prisma.session.createManyAndReturn({
691
+ * data: [
692
+ * // ... provide data here
693
+ * ]
694
+ * })
695
+ *
696
+ * // Create many Sessions and only return the `id`
697
+ * const sessionWithIdOnly = await prisma.session.createManyAndReturn({
698
+ * select: { id: true },
699
+ * data: [
700
+ * // ... provide data here
701
+ * ]
702
+ * })
703
+ * Note, that providing `undefined` is treated as the value not being there.
704
+ * Read more here: https://pris.ly/d/null-undefined
705
+ *
706
+ */
707
+ createManyAndReturn<T extends SessionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SessionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
708
+
709
+ /**
710
+ * Delete a Session.
711
+ * @param {SessionDeleteArgs} args - Arguments to delete one Session.
712
+ * @example
713
+ * // Delete one Session
714
+ * const Session = await prisma.session.delete({
715
+ * where: {
716
+ * // ... filter to delete one Session
717
+ * }
718
+ * })
719
+ *
720
+ */
721
+ delete<T extends SessionDeleteArgs>(args: Prisma.SelectSubset<T, SessionDeleteArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
722
+
723
+ /**
724
+ * Update one Session.
725
+ * @param {SessionUpdateArgs} args - Arguments to update one Session.
726
+ * @example
727
+ * // Update one Session
728
+ * const session = await prisma.session.update({
729
+ * where: {
730
+ * // ... provide filter here
731
+ * },
732
+ * data: {
733
+ * // ... provide data here
734
+ * }
735
+ * })
736
+ *
737
+ */
738
+ update<T extends SessionUpdateArgs>(args: Prisma.SelectSubset<T, SessionUpdateArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
739
+
740
+ /**
741
+ * Delete zero or more Sessions.
742
+ * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete.
743
+ * @example
744
+ * // Delete a few Sessions
745
+ * const { count } = await prisma.session.deleteMany({
746
+ * where: {
747
+ * // ... provide filter here
748
+ * }
749
+ * })
750
+ *
751
+ */
752
+ deleteMany<T extends SessionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SessionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
753
+
754
+ /**
755
+ * Update zero or more Sessions.
756
+ * Note, that providing `undefined` is treated as the value not being there.
757
+ * Read more here: https://pris.ly/d/null-undefined
758
+ * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows.
759
+ * @example
760
+ * // Update many Sessions
761
+ * const session = await prisma.session.updateMany({
762
+ * where: {
763
+ * // ... provide filter here
764
+ * },
765
+ * data: {
766
+ * // ... provide data here
767
+ * }
768
+ * })
769
+ *
770
+ */
771
+ updateMany<T extends SessionUpdateManyArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
772
+
773
+ /**
774
+ * Update zero or more Sessions and returns the data updated in the database.
775
+ * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
776
+ * @example
777
+ * // Update many Sessions
778
+ * const session = await prisma.session.updateManyAndReturn({
779
+ * where: {
780
+ * // ... provide filter here
781
+ * },
782
+ * data: [
783
+ * // ... provide data here
784
+ * ]
785
+ * })
786
+ *
787
+ * // Update zero or more Sessions and only return the `id`
788
+ * const sessionWithIdOnly = await prisma.session.updateManyAndReturn({
789
+ * select: { id: true },
790
+ * where: {
791
+ * // ... provide filter here
792
+ * },
793
+ * data: [
794
+ * // ... provide data here
795
+ * ]
796
+ * })
797
+ * Note, that providing `undefined` is treated as the value not being there.
798
+ * Read more here: https://pris.ly/d/null-undefined
799
+ *
800
+ */
801
+ updateManyAndReturn<T extends SessionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SessionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
802
+
803
+ /**
804
+ * Create or update one Session.
805
+ * @param {SessionUpsertArgs} args - Arguments to update or create a Session.
806
+ * @example
807
+ * // Update or create a Session
808
+ * const session = await prisma.session.upsert({
809
+ * create: {
810
+ * // ... data to create a Session
811
+ * },
812
+ * update: {
813
+ * // ... in case it already exists, update
814
+ * },
815
+ * where: {
816
+ * // ... the filter for the Session we want to update
817
+ * }
818
+ * })
819
+ */
820
+ upsert<T extends SessionUpsertArgs>(args: Prisma.SelectSubset<T, SessionUpsertArgs<ExtArgs>>): Prisma.Prisma__SessionClient<runtime.Types.Result.GetResult<Prisma.$SessionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
821
+
822
+
823
+ /**
824
+ * Count the number of Sessions.
825
+ * Note, that providing `undefined` is treated as the value not being there.
826
+ * Read more here: https://pris.ly/d/null-undefined
827
+ * @param {SessionCountArgs} args - Arguments to filter Sessions to count.
828
+ * @example
829
+ * // Count the number of Sessions
830
+ * const count = await prisma.session.count({
831
+ * where: {
832
+ * // ... the filter for the Sessions we want to count
833
+ * }
834
+ * })
835
+ **/
836
+ count<T extends SessionCountArgs>(
837
+ args?: Prisma.Subset<T, SessionCountArgs>,
838
+ ): Prisma.PrismaPromise<
839
+ T extends runtime.Types.Utils.Record<'select', any>
840
+ ? T['select'] extends true
841
+ ? number
842
+ : Prisma.GetScalarType<T['select'], SessionCountAggregateOutputType>
843
+ : number
844
+ >
845
+
846
+ /**
847
+ * Allows you to perform aggregations operations on a Session.
848
+ * Note, that providing `undefined` is treated as the value not being there.
849
+ * Read more here: https://pris.ly/d/null-undefined
850
+ * @param {SessionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
851
+ * @example
852
+ * // Ordered by age ascending
853
+ * // Where email contains prisma.io
854
+ * // Limited to the 10 users
855
+ * const aggregations = await prisma.user.aggregate({
856
+ * _avg: {
857
+ * age: true,
858
+ * },
859
+ * where: {
860
+ * email: {
861
+ * contains: "prisma.io",
862
+ * },
863
+ * },
864
+ * orderBy: {
865
+ * age: "asc",
866
+ * },
867
+ * take: 10,
868
+ * })
869
+ **/
870
+ aggregate<T extends SessionAggregateArgs>(args: Prisma.Subset<T, SessionAggregateArgs>): Prisma.PrismaPromise<GetSessionAggregateType<T>>
871
+
872
+ /**
873
+ * Group by Session.
874
+ * Note, that providing `undefined` is treated as the value not being there.
875
+ * Read more here: https://pris.ly/d/null-undefined
876
+ * @param {SessionGroupByArgs} args - Group by arguments.
877
+ * @example
878
+ * // Group by city, order by createdAt, get count
879
+ * const result = await prisma.user.groupBy({
880
+ * by: ['city', 'createdAt'],
881
+ * orderBy: {
882
+ * createdAt: true
883
+ * },
884
+ * _count: {
885
+ * _all: true
886
+ * },
887
+ * })
888
+ *
889
+ **/
890
+ groupBy<
891
+ T extends SessionGroupByArgs,
892
+ HasSelectOrTake extends Prisma.Or<
893
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
894
+ Prisma.Extends<'take', Prisma.Keys<T>>
895
+ >,
896
+ OrderByArg extends Prisma.True extends HasSelectOrTake
897
+ ? { orderBy: SessionGroupByArgs['orderBy'] }
898
+ : { orderBy?: SessionGroupByArgs['orderBy'] },
899
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
900
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
901
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
902
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
903
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
904
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
905
+ InputErrors extends ByEmpty extends Prisma.True
906
+ ? `Error: "by" must not be empty.`
907
+ : HavingValid extends Prisma.False
908
+ ? {
909
+ [P in HavingFields]: P extends ByFields
910
+ ? never
911
+ : P extends string
912
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
913
+ : [
914
+ Error,
915
+ 'Field ',
916
+ P,
917
+ ` in "having" needs to be provided in "by"`,
918
+ ]
919
+ }[HavingFields]
920
+ : 'take' extends Prisma.Keys<T>
921
+ ? 'orderBy' extends Prisma.Keys<T>
922
+ ? ByValid extends Prisma.True
923
+ ? {}
924
+ : {
925
+ [P in OrderFields]: P extends ByFields
926
+ ? never
927
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
928
+ }[OrderFields]
929
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
930
+ : 'skip' extends Prisma.Keys<T>
931
+ ? 'orderBy' extends Prisma.Keys<T>
932
+ ? ByValid extends Prisma.True
933
+ ? {}
934
+ : {
935
+ [P in OrderFields]: P extends ByFields
936
+ ? never
937
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
938
+ }[OrderFields]
939
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
940
+ : ByValid extends Prisma.True
941
+ ? {}
942
+ : {
943
+ [P in OrderFields]: P extends ByFields
944
+ ? never
945
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
946
+ }[OrderFields]
947
+ >(args: Prisma.SubsetIntersection<T, SessionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
948
+ /**
949
+ * Fields of the Session model
950
+ */
951
+ readonly fields: SessionFieldRefs;
952
+ }
953
+
954
+ /**
955
+ * The delegate class that acts as a "Promise-like" for Session.
956
+ * Why is this prefixed with `Prisma__`?
957
+ * Because we want to prevent naming conflicts as mentioned in
958
+ * https://github.com/prisma/prisma-client-js/issues/707
959
+ */
960
+ export interface Prisma__SessionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
961
+ readonly [Symbol.toStringTag]: "PrismaPromise"
962
+ 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>
963
+ /**
964
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
965
+ * @param onfulfilled The callback to execute when the Promise is resolved.
966
+ * @param onrejected The callback to execute when the Promise is rejected.
967
+ * @returns A Promise for the completion of which ever callback is executed.
968
+ */
969
+ 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>
970
+ /**
971
+ * Attaches a callback for only the rejection of the Promise.
972
+ * @param onrejected The callback to execute when the Promise is rejected.
973
+ * @returns A Promise for the completion of the callback.
974
+ */
975
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
976
+ /**
977
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
978
+ * resolved value cannot be modified from the callback.
979
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
980
+ * @returns A Promise for the completion of the callback.
981
+ */
982
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
983
+ }
984
+
985
+
986
+
987
+
988
+ /**
989
+ * Fields of the Session model
990
+ */
991
+ export interface SessionFieldRefs {
992
+ readonly id: Prisma.FieldRef<"Session", 'String'>
993
+ readonly userId: Prisma.FieldRef<"Session", 'String'>
994
+ readonly token: Prisma.FieldRef<"Session", 'String'>
995
+ readonly expiresAt: Prisma.FieldRef<"Session", 'DateTime'>
996
+ readonly createdAt: Prisma.FieldRef<"Session", 'DateTime'>
997
+ readonly ipAddress: Prisma.FieldRef<"Session", 'String'>
998
+ readonly userAgent: Prisma.FieldRef<"Session", 'String'>
999
+ }
1000
+
1001
+
1002
+ // Custom InputTypes
1003
+ /**
1004
+ * Session findUnique
1005
+ */
1006
+ export type SessionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1007
+ /**
1008
+ * Select specific fields to fetch from the Session
1009
+ */
1010
+ select?: Prisma.SessionSelect<ExtArgs> | null
1011
+ /**
1012
+ * Omit specific fields from the Session
1013
+ */
1014
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1015
+ /**
1016
+ * Choose, which related nodes to fetch as well
1017
+ */
1018
+ include?: Prisma.SessionInclude<ExtArgs> | null
1019
+ /**
1020
+ * Filter, which Session to fetch.
1021
+ */
1022
+ where: Prisma.SessionWhereUniqueInput
1023
+ }
1024
+
1025
+ /**
1026
+ * Session findUniqueOrThrow
1027
+ */
1028
+ export type SessionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1029
+ /**
1030
+ * Select specific fields to fetch from the Session
1031
+ */
1032
+ select?: Prisma.SessionSelect<ExtArgs> | null
1033
+ /**
1034
+ * Omit specific fields from the Session
1035
+ */
1036
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1037
+ /**
1038
+ * Choose, which related nodes to fetch as well
1039
+ */
1040
+ include?: Prisma.SessionInclude<ExtArgs> | null
1041
+ /**
1042
+ * Filter, which Session to fetch.
1043
+ */
1044
+ where: Prisma.SessionWhereUniqueInput
1045
+ }
1046
+
1047
+ /**
1048
+ * Session findFirst
1049
+ */
1050
+ export type SessionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1051
+ /**
1052
+ * Select specific fields to fetch from the Session
1053
+ */
1054
+ select?: Prisma.SessionSelect<ExtArgs> | null
1055
+ /**
1056
+ * Omit specific fields from the Session
1057
+ */
1058
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1059
+ /**
1060
+ * Choose, which related nodes to fetch as well
1061
+ */
1062
+ include?: Prisma.SessionInclude<ExtArgs> | null
1063
+ /**
1064
+ * Filter, which Session to fetch.
1065
+ */
1066
+ where?: Prisma.SessionWhereInput
1067
+ /**
1068
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1069
+ *
1070
+ * Determine the order of Sessions to fetch.
1071
+ */
1072
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1075
+ *
1076
+ * Sets the position for searching for Sessions.
1077
+ */
1078
+ cursor?: Prisma.SessionWhereUniqueInput
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1081
+ *
1082
+ * Take `±n` Sessions from the position of the cursor.
1083
+ */
1084
+ take?: number
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1087
+ *
1088
+ * Skip the first `n` Sessions.
1089
+ */
1090
+ skip?: number
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1093
+ *
1094
+ * Filter by unique combinations of Sessions.
1095
+ */
1096
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1097
+ }
1098
+
1099
+ /**
1100
+ * Session findFirstOrThrow
1101
+ */
1102
+ export type SessionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * Select specific fields to fetch from the Session
1105
+ */
1106
+ select?: Prisma.SessionSelect<ExtArgs> | null
1107
+ /**
1108
+ * Omit specific fields from the Session
1109
+ */
1110
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1111
+ /**
1112
+ * Choose, which related nodes to fetch as well
1113
+ */
1114
+ include?: Prisma.SessionInclude<ExtArgs> | null
1115
+ /**
1116
+ * Filter, which Session to fetch.
1117
+ */
1118
+ where?: Prisma.SessionWhereInput
1119
+ /**
1120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1121
+ *
1122
+ * Determine the order of Sessions to fetch.
1123
+ */
1124
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1125
+ /**
1126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1127
+ *
1128
+ * Sets the position for searching for Sessions.
1129
+ */
1130
+ cursor?: Prisma.SessionWhereUniqueInput
1131
+ /**
1132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1133
+ *
1134
+ * Take `±n` Sessions from the position of the cursor.
1135
+ */
1136
+ take?: number
1137
+ /**
1138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1139
+ *
1140
+ * Skip the first `n` Sessions.
1141
+ */
1142
+ skip?: number
1143
+ /**
1144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1145
+ *
1146
+ * Filter by unique combinations of Sessions.
1147
+ */
1148
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1149
+ }
1150
+
1151
+ /**
1152
+ * Session findMany
1153
+ */
1154
+ export type SessionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Select specific fields to fetch from the Session
1157
+ */
1158
+ select?: Prisma.SessionSelect<ExtArgs> | null
1159
+ /**
1160
+ * Omit specific fields from the Session
1161
+ */
1162
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1163
+ /**
1164
+ * Choose, which related nodes to fetch as well
1165
+ */
1166
+ include?: Prisma.SessionInclude<ExtArgs> | null
1167
+ /**
1168
+ * Filter, which Sessions to fetch.
1169
+ */
1170
+ where?: Prisma.SessionWhereInput
1171
+ /**
1172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1173
+ *
1174
+ * Determine the order of Sessions to fetch.
1175
+ */
1176
+ orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[]
1177
+ /**
1178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1179
+ *
1180
+ * Sets the position for listing Sessions.
1181
+ */
1182
+ cursor?: Prisma.SessionWhereUniqueInput
1183
+ /**
1184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1185
+ *
1186
+ * Take `±n` Sessions from the position of the cursor.
1187
+ */
1188
+ take?: number
1189
+ /**
1190
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1191
+ *
1192
+ * Skip the first `n` Sessions.
1193
+ */
1194
+ skip?: number
1195
+ /**
1196
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1197
+ *
1198
+ * Filter by unique combinations of Sessions.
1199
+ */
1200
+ distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[]
1201
+ }
1202
+
1203
+ /**
1204
+ * Session create
1205
+ */
1206
+ export type SessionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1207
+ /**
1208
+ * Select specific fields to fetch from the Session
1209
+ */
1210
+ select?: Prisma.SessionSelect<ExtArgs> | null
1211
+ /**
1212
+ * Omit specific fields from the Session
1213
+ */
1214
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1215
+ /**
1216
+ * Choose, which related nodes to fetch as well
1217
+ */
1218
+ include?: Prisma.SessionInclude<ExtArgs> | null
1219
+ /**
1220
+ * The data needed to create a Session.
1221
+ */
1222
+ data: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>
1223
+ }
1224
+
1225
+ /**
1226
+ * Session createMany
1227
+ */
1228
+ export type SessionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ /**
1230
+ * The data used to create many Sessions.
1231
+ */
1232
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[]
1233
+ skipDuplicates?: boolean
1234
+ }
1235
+
1236
+ /**
1237
+ * Session createManyAndReturn
1238
+ */
1239
+ export type SessionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1240
+ /**
1241
+ * Select specific fields to fetch from the Session
1242
+ */
1243
+ select?: Prisma.SessionSelectCreateManyAndReturn<ExtArgs> | null
1244
+ /**
1245
+ * Omit specific fields from the Session
1246
+ */
1247
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1248
+ /**
1249
+ * The data used to create many Sessions.
1250
+ */
1251
+ data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[]
1252
+ skipDuplicates?: boolean
1253
+ /**
1254
+ * Choose, which related nodes to fetch as well
1255
+ */
1256
+ include?: Prisma.SessionIncludeCreateManyAndReturn<ExtArgs> | null
1257
+ }
1258
+
1259
+ /**
1260
+ * Session update
1261
+ */
1262
+ export type SessionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the Session
1265
+ */
1266
+ select?: Prisma.SessionSelect<ExtArgs> | null
1267
+ /**
1268
+ * Omit specific fields from the Session
1269
+ */
1270
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1271
+ /**
1272
+ * Choose, which related nodes to fetch as well
1273
+ */
1274
+ include?: Prisma.SessionInclude<ExtArgs> | null
1275
+ /**
1276
+ * The data needed to update a Session.
1277
+ */
1278
+ data: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>
1279
+ /**
1280
+ * Choose, which Session to update.
1281
+ */
1282
+ where: Prisma.SessionWhereUniqueInput
1283
+ }
1284
+
1285
+ /**
1286
+ * Session updateMany
1287
+ */
1288
+ export type SessionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1289
+ /**
1290
+ * The data used to update Sessions.
1291
+ */
1292
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>
1293
+ /**
1294
+ * Filter which Sessions to update
1295
+ */
1296
+ where?: Prisma.SessionWhereInput
1297
+ /**
1298
+ * Limit how many Sessions to update.
1299
+ */
1300
+ limit?: number
1301
+ }
1302
+
1303
+ /**
1304
+ * Session updateManyAndReturn
1305
+ */
1306
+ export type SessionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * Select specific fields to fetch from the Session
1309
+ */
1310
+ select?: Prisma.SessionSelectUpdateManyAndReturn<ExtArgs> | null
1311
+ /**
1312
+ * Omit specific fields from the Session
1313
+ */
1314
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1315
+ /**
1316
+ * The data used to update Sessions.
1317
+ */
1318
+ data: Prisma.XOR<Prisma.SessionUpdateManyMutationInput, Prisma.SessionUncheckedUpdateManyInput>
1319
+ /**
1320
+ * Filter which Sessions to update
1321
+ */
1322
+ where?: Prisma.SessionWhereInput
1323
+ /**
1324
+ * Limit how many Sessions to update.
1325
+ */
1326
+ limit?: number
1327
+ /**
1328
+ * Choose, which related nodes to fetch as well
1329
+ */
1330
+ include?: Prisma.SessionIncludeUpdateManyAndReturn<ExtArgs> | null
1331
+ }
1332
+
1333
+ /**
1334
+ * Session upsert
1335
+ */
1336
+ export type SessionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1337
+ /**
1338
+ * Select specific fields to fetch from the Session
1339
+ */
1340
+ select?: Prisma.SessionSelect<ExtArgs> | null
1341
+ /**
1342
+ * Omit specific fields from the Session
1343
+ */
1344
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1345
+ /**
1346
+ * Choose, which related nodes to fetch as well
1347
+ */
1348
+ include?: Prisma.SessionInclude<ExtArgs> | null
1349
+ /**
1350
+ * The filter to search for the Session to update in case it exists.
1351
+ */
1352
+ where: Prisma.SessionWhereUniqueInput
1353
+ /**
1354
+ * In case the Session found by the `where` argument doesn't exist, create a new Session with this data.
1355
+ */
1356
+ create: Prisma.XOR<Prisma.SessionCreateInput, Prisma.SessionUncheckedCreateInput>
1357
+ /**
1358
+ * In case the Session was found with the provided `where` argument, update it with this data.
1359
+ */
1360
+ update: Prisma.XOR<Prisma.SessionUpdateInput, Prisma.SessionUncheckedUpdateInput>
1361
+ }
1362
+
1363
+ /**
1364
+ * Session delete
1365
+ */
1366
+ export type SessionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1367
+ /**
1368
+ * Select specific fields to fetch from the Session
1369
+ */
1370
+ select?: Prisma.SessionSelect<ExtArgs> | null
1371
+ /**
1372
+ * Omit specific fields from the Session
1373
+ */
1374
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1375
+ /**
1376
+ * Choose, which related nodes to fetch as well
1377
+ */
1378
+ include?: Prisma.SessionInclude<ExtArgs> | null
1379
+ /**
1380
+ * Filter which Session to delete.
1381
+ */
1382
+ where: Prisma.SessionWhereUniqueInput
1383
+ }
1384
+
1385
+ /**
1386
+ * Session deleteMany
1387
+ */
1388
+ export type SessionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1389
+ /**
1390
+ * Filter which Sessions to delete
1391
+ */
1392
+ where?: Prisma.SessionWhereInput
1393
+ /**
1394
+ * Limit how many Sessions to delete.
1395
+ */
1396
+ limit?: number
1397
+ }
1398
+
1399
+ /**
1400
+ * Session without action
1401
+ */
1402
+ export type SessionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1403
+ /**
1404
+ * Select specific fields to fetch from the Session
1405
+ */
1406
+ select?: Prisma.SessionSelect<ExtArgs> | null
1407
+ /**
1408
+ * Omit specific fields from the Session
1409
+ */
1410
+ omit?: Prisma.SessionOmit<ExtArgs> | null
1411
+ /**
1412
+ * Choose, which related nodes to fetch as well
1413
+ */
1414
+ include?: Prisma.SessionInclude<ExtArgs> | null
1415
+ }