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