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