@windrun-huaiin/backend-core 27.0.0 → 28.0.1

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