create-zhx-monorepo 0.1.0

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