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