@allbluecn/database 0.3.14 → 0.4.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.
- package/desktop-init.ts +128 -0
- package/generated/browser.ts +494 -0
- package/generated/client.ts +518 -0
- package/generated/commonInputTypes.ts +1056 -0
- package/generated/enums.ts +93 -0
- package/generated/internal/class.ts +1144 -0
- package/generated/internal/prismaNamespace.ts +9603 -0
- package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
- package/generated/models/Account.ts +1648 -0
- package/generated/models/AgentConversation.ts +1651 -0
- package/generated/models/AgentMessage.ts +1409 -0
- package/generated/models/AiProvider.ts +1607 -0
- package/generated/models/AiProviderConfig.ts +1514 -0
- package/generated/models/AiUsageLog.ts +1863 -0
- package/generated/models/AnyHubApp.ts +1911 -0
- package/generated/models/AnyHubMarketApp.ts +2008 -0
- package/generated/models/AnyHubPermission.ts +1422 -0
- package/generated/models/AnyHubRecommendation.ts +1870 -0
- package/generated/models/AnyHubRecommender.ts +1471 -0
- package/generated/models/Artboard.ts +1811 -0
- package/generated/models/ArtboardExport.ts +1548 -0
- package/generated/models/ArticleFavorite.ts +1352 -0
- package/generated/models/AuditLog.ts +1533 -0
- package/generated/models/Block.ts +1650 -0
- package/generated/models/BlockComponent.ts +1734 -0
- package/generated/models/BlockInstance.ts +2043 -0
- package/generated/models/BookmarkCategory.ts +1670 -0
- package/generated/models/ChatInterrupt.ts +1699 -0
- package/generated/models/ChatMessage.ts +1438 -0
- package/generated/models/ChatRun.ts +1632 -0
- package/generated/models/ChatThread.ts +2133 -0
- package/generated/models/Comment.ts +2206 -0
- package/generated/models/CommentIgnore.ts +1430 -0
- package/generated/models/CommentReaction.ts +1472 -0
- package/generated/models/ComplianceExport.ts +1345 -0
- package/generated/models/Component.ts +2345 -0
- package/generated/models/ComponentInstance.ts +2102 -0
- package/generated/models/ComponentTag.ts +1281 -0
- package/generated/models/CustomRole.ts +1560 -0
- package/generated/models/DesignProject.ts +1643 -0
- package/generated/models/DictionaryTerm.ts +1642 -0
- package/generated/models/GenerationRun.ts +1543 -0
- package/generated/models/IndustryCompliance.ts +1797 -0
- package/generated/models/InvitationCode.ts +1417 -0
- package/generated/models/InvitationUse.ts +1424 -0
- package/generated/models/Invoice.ts +1710 -0
- package/generated/models/KnowledgeBase.ts +1671 -0
- package/generated/models/KnowledgeDocument.ts +2458 -0
- package/generated/models/KnowledgeShareRecord.ts +1352 -0
- package/generated/models/Label.ts +1482 -0
- package/generated/models/LegalRegulation.ts +1873 -0
- package/generated/models/LicenseActivation.ts +1415 -0
- package/generated/models/LicenseKey.ts +1884 -0
- package/generated/models/LoginLog.ts +1450 -0
- package/generated/models/MonitoringErrorReport.ts +1299 -0
- package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
- package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
- package/generated/models/MonitoringRequestLog.ts +1283 -0
- package/generated/models/PRD.ts +2805 -0
- package/generated/models/PRDPage.ts +2402 -0
- package/generated/models/PRDTag.ts +1430 -0
- package/generated/models/PRDVersion.ts +2121 -0
- package/generated/models/PageVersion.ts +1523 -0
- package/generated/models/PasswordResetToken.ts +1380 -0
- package/generated/models/Plan.ts +2069 -0
- package/generated/models/Project.ts +2148 -0
- package/generated/models/ProjectActivity.ts +1582 -0
- package/generated/models/ProjectMember.ts +1512 -0
- package/generated/models/ProviderEvent.ts +1227 -0
- package/generated/models/Reference.ts +1177 -0
- package/generated/models/Review.ts +1912 -0
- package/generated/models/ReviewComment.ts +1904 -0
- package/generated/models/RoleAssignment.ts +1430 -0
- package/generated/models/SequenceCounter.ts +1137 -0
- package/generated/models/Share.ts +1681 -0
- package/generated/models/ShareVersion.ts +1389 -0
- package/generated/models/SsoMapping.ts +1512 -0
- package/generated/models/SsoProvider.ts +1639 -0
- package/generated/models/Story.ts +5234 -0
- package/generated/models/StoryActivity.ts +1664 -0
- package/generated/models/StoryAttachment.ts +1467 -0
- package/generated/models/StoryComment.ts +1992 -0
- package/generated/models/StoryDependency.ts +1517 -0
- package/generated/models/StoryDocLink.ts +1430 -0
- package/generated/models/StoryFilterView.ts +1587 -0
- package/generated/models/StoryLabel.ts +1349 -0
- package/generated/models/StoryLink.ts +1415 -0
- package/generated/models/StoryPrdLink.ts +1430 -0
- package/generated/models/StoryReaction.ts +1472 -0
- package/generated/models/Subscription.ts +2147 -0
- package/generated/models/SystemSetting.ts +1217 -0
- package/generated/models/Tag.ts +1655 -0
- package/generated/models/TeamInvitation.ts +1526 -0
- package/generated/models/TeamMembership.ts +1436 -0
- package/generated/models/Template.ts +1391 -0
- package/generated/models/TemplateBlock.ts +1664 -0
- package/generated/models/ThirdPartyDependency.ts +1473 -0
- package/generated/models/UsageRecord.ts +1505 -0
- package/generated/models/User.ts +20998 -0
- package/generated/models/UserAgent.ts +1900 -0
- package/generated/models/UserSkill.ts +1456 -0
- package/generated/models/WebsiteBookmark.ts +2219 -0
- package/generated/models/Workspace.ts +2279 -0
- package/generated/models.ts +106 -0
- package/generated-sqlite/browser.ts +399 -0
- package/generated-sqlite/client.ts +423 -0
- package/generated-sqlite/commonInputTypes.ts +608 -0
- package/generated-sqlite/enums.ts +15 -0
- package/generated-sqlite/internal/class.ts +954 -0
- package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
- package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
- package/generated-sqlite/models/AgentConversation.ts +1647 -0
- package/generated-sqlite/models/AgentMessage.ts +1406 -0
- package/generated-sqlite/models/AiProvider.ts +1605 -0
- package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
- package/generated-sqlite/models/AiUsageLog.ts +1845 -0
- package/generated-sqlite/models/AnyHubApp.ts +1908 -0
- package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
- package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
- package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
- package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
- package/generated-sqlite/models/Artboard.ts +1808 -0
- package/generated-sqlite/models/ArtboardExport.ts +1545 -0
- package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
- package/generated-sqlite/models/AuditLog.ts +1287 -0
- package/generated-sqlite/models/Block.ts +1648 -0
- package/generated-sqlite/models/BlockComponent.ts +1730 -0
- package/generated-sqlite/models/BlockInstance.ts +2039 -0
- package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
- package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
- package/generated-sqlite/models/ChatMessage.ts +1435 -0
- package/generated-sqlite/models/ChatRun.ts +1629 -0
- package/generated-sqlite/models/ChatThread.ts +2129 -0
- package/generated-sqlite/models/Comment.ts +2201 -0
- package/generated-sqlite/models/CommentIgnore.ts +1426 -0
- package/generated-sqlite/models/ComplianceExport.ts +1343 -0
- package/generated-sqlite/models/Component.ts +2326 -0
- package/generated-sqlite/models/ComponentInstance.ts +2097 -0
- package/generated-sqlite/models/ComponentTag.ts +1278 -0
- package/generated-sqlite/models/CustomRole.ts +1209 -0
- package/generated-sqlite/models/DesignProject.ts +1640 -0
- package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
- package/generated-sqlite/models/GenerationRun.ts +1540 -0
- package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
- package/generated-sqlite/models/InvitationCode.ts +1415 -0
- package/generated-sqlite/models/InvitationUse.ts +1420 -0
- package/generated-sqlite/models/Invoice.ts +1707 -0
- package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
- package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
- package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
- package/generated-sqlite/models/LegalRegulation.ts +1870 -0
- package/generated-sqlite/models/LicenseActivation.ts +1203 -0
- package/generated-sqlite/models/LicenseKey.ts +1443 -0
- package/generated-sqlite/models/LoginLog.ts +1447 -0
- package/generated-sqlite/models/PRD.ts +2616 -0
- package/generated-sqlite/models/PRDPage.ts +2398 -0
- package/generated-sqlite/models/PRDTag.ts +1426 -0
- package/generated-sqlite/models/PRDVersion.ts +2117 -0
- package/generated-sqlite/models/PageVersion.ts +1528 -0
- package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
- package/generated-sqlite/models/Plan.ts +2060 -0
- package/generated-sqlite/models/Project.ts +1994 -0
- package/generated-sqlite/models/ProjectActivity.ts +1578 -0
- package/generated-sqlite/models/ProjectMember.ts +1508 -0
- package/generated-sqlite/models/ProviderEvent.ts +1225 -0
- package/generated-sqlite/models/Reference.ts +1175 -0
- package/generated-sqlite/models/Review.ts +1903 -0
- package/generated-sqlite/models/ReviewComment.ts +1899 -0
- package/generated-sqlite/models/RoleAssignment.ts +1125 -0
- package/generated-sqlite/models/Share.ts +1674 -0
- package/generated-sqlite/models/ShareVersion.ts +1385 -0
- package/generated-sqlite/models/SsoMapping.ts +1181 -0
- package/generated-sqlite/models/SsoProvider.ts +1266 -0
- package/generated-sqlite/models/Subscription.ts +2137 -0
- package/generated-sqlite/models/SystemSetting.ts +1215 -0
- package/generated-sqlite/models/Tag.ts +1652 -0
- package/generated-sqlite/models/TeamInvitation.ts +1523 -0
- package/generated-sqlite/models/TeamMembership.ts +1433 -0
- package/generated-sqlite/models/Template.ts +1389 -0
- package/generated-sqlite/models/TemplateBlock.ts +1660 -0
- package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
- package/generated-sqlite/models/UsageRecord.ts +1498 -0
- package/generated-sqlite/models/User.ts +13558 -0
- package/generated-sqlite/models/UserAgent.ts +1897 -0
- package/generated-sqlite/models/UserSkill.ts +1453 -0
- package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
- package/generated-sqlite/models/Workspace.ts +1824 -0
- package/generated-sqlite/models.ts +87 -0
- package/package.json +7 -3
- package/LICENSE +0 -661
|
@@ -0,0 +1,1498 @@
|
|
|
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 `UsageRecord` 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 UsageRecord
|
|
17
|
+
* 用量记录(按月聚合,用于额度判断)
|
|
18
|
+
*/
|
|
19
|
+
export type UsageRecordModel = runtime.Types.Result.DefaultSelection<Prisma.$UsageRecordPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateUsageRecord = {
|
|
22
|
+
_count: UsageRecordCountAggregateOutputType | null
|
|
23
|
+
_avg: UsageRecordAvgAggregateOutputType | null
|
|
24
|
+
_sum: UsageRecordSumAggregateOutputType | null
|
|
25
|
+
_min: UsageRecordMinAggregateOutputType | null
|
|
26
|
+
_max: UsageRecordMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type UsageRecordAvgAggregateOutputType = {
|
|
30
|
+
count: number | null
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type UsageRecordSumAggregateOutputType = {
|
|
34
|
+
count: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type UsageRecordMinAggregateOutputType = {
|
|
38
|
+
id: string | null
|
|
39
|
+
workspaceId: string | null
|
|
40
|
+
metric: string | null
|
|
41
|
+
period: string | null
|
|
42
|
+
count: number | null
|
|
43
|
+
resetAt: Date | null
|
|
44
|
+
createdAt: Date | null
|
|
45
|
+
updatedAt: Date | null
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type UsageRecordMaxAggregateOutputType = {
|
|
49
|
+
id: string | null
|
|
50
|
+
workspaceId: string | null
|
|
51
|
+
metric: string | null
|
|
52
|
+
period: string | null
|
|
53
|
+
count: number | null
|
|
54
|
+
resetAt: Date | null
|
|
55
|
+
createdAt: Date | null
|
|
56
|
+
updatedAt: Date | null
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type UsageRecordCountAggregateOutputType = {
|
|
60
|
+
id: number
|
|
61
|
+
workspaceId: number
|
|
62
|
+
metric: number
|
|
63
|
+
period: number
|
|
64
|
+
count: number
|
|
65
|
+
resetAt: number
|
|
66
|
+
createdAt: number
|
|
67
|
+
updatedAt: number
|
|
68
|
+
_all: number
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
export type UsageRecordAvgAggregateInputType = {
|
|
73
|
+
count?: true
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type UsageRecordSumAggregateInputType = {
|
|
77
|
+
count?: true
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type UsageRecordMinAggregateInputType = {
|
|
81
|
+
id?: true
|
|
82
|
+
workspaceId?: true
|
|
83
|
+
metric?: true
|
|
84
|
+
period?: true
|
|
85
|
+
count?: true
|
|
86
|
+
resetAt?: true
|
|
87
|
+
createdAt?: true
|
|
88
|
+
updatedAt?: true
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type UsageRecordMaxAggregateInputType = {
|
|
92
|
+
id?: true
|
|
93
|
+
workspaceId?: true
|
|
94
|
+
metric?: true
|
|
95
|
+
period?: true
|
|
96
|
+
count?: true
|
|
97
|
+
resetAt?: true
|
|
98
|
+
createdAt?: true
|
|
99
|
+
updatedAt?: true
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type UsageRecordCountAggregateInputType = {
|
|
103
|
+
id?: true
|
|
104
|
+
workspaceId?: true
|
|
105
|
+
metric?: true
|
|
106
|
+
period?: true
|
|
107
|
+
count?: true
|
|
108
|
+
resetAt?: true
|
|
109
|
+
createdAt?: true
|
|
110
|
+
updatedAt?: true
|
|
111
|
+
_all?: true
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type UsageRecordAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
115
|
+
/**
|
|
116
|
+
* Filter which UsageRecord to aggregate.
|
|
117
|
+
*/
|
|
118
|
+
where?: Prisma.UsageRecordWhereInput
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
121
|
+
*
|
|
122
|
+
* Determine the order of UsageRecords to fetch.
|
|
123
|
+
*/
|
|
124
|
+
orderBy?: Prisma.UsageRecordOrderByWithRelationInput | Prisma.UsageRecordOrderByWithRelationInput[]
|
|
125
|
+
/**
|
|
126
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
127
|
+
*
|
|
128
|
+
* Sets the start position
|
|
129
|
+
*/
|
|
130
|
+
cursor?: Prisma.UsageRecordWhereUniqueInput
|
|
131
|
+
/**
|
|
132
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
133
|
+
*
|
|
134
|
+
* Take `±n` UsageRecords from the position of the cursor.
|
|
135
|
+
*/
|
|
136
|
+
take?: number
|
|
137
|
+
/**
|
|
138
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
139
|
+
*
|
|
140
|
+
* Skip the first `n` UsageRecords.
|
|
141
|
+
*/
|
|
142
|
+
skip?: number
|
|
143
|
+
/**
|
|
144
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
145
|
+
*
|
|
146
|
+
* Count returned UsageRecords
|
|
147
|
+
**/
|
|
148
|
+
_count?: true | UsageRecordCountAggregateInputType
|
|
149
|
+
/**
|
|
150
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
151
|
+
*
|
|
152
|
+
* Select which fields to average
|
|
153
|
+
**/
|
|
154
|
+
_avg?: UsageRecordAvgAggregateInputType
|
|
155
|
+
/**
|
|
156
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
157
|
+
*
|
|
158
|
+
* Select which fields to sum
|
|
159
|
+
**/
|
|
160
|
+
_sum?: UsageRecordSumAggregateInputType
|
|
161
|
+
/**
|
|
162
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
163
|
+
*
|
|
164
|
+
* Select which fields to find the minimum value
|
|
165
|
+
**/
|
|
166
|
+
_min?: UsageRecordMinAggregateInputType
|
|
167
|
+
/**
|
|
168
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
169
|
+
*
|
|
170
|
+
* Select which fields to find the maximum value
|
|
171
|
+
**/
|
|
172
|
+
_max?: UsageRecordMaxAggregateInputType
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type GetUsageRecordAggregateType<T extends UsageRecordAggregateArgs> = {
|
|
176
|
+
[P in keyof T & keyof AggregateUsageRecord]: P extends '_count' | 'count'
|
|
177
|
+
? T[P] extends true
|
|
178
|
+
? number
|
|
179
|
+
: Prisma.GetScalarType<T[P], AggregateUsageRecord[P]>
|
|
180
|
+
: Prisma.GetScalarType<T[P], AggregateUsageRecord[P]>
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
export type UsageRecordGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
187
|
+
where?: Prisma.UsageRecordWhereInput
|
|
188
|
+
orderBy?: Prisma.UsageRecordOrderByWithAggregationInput | Prisma.UsageRecordOrderByWithAggregationInput[]
|
|
189
|
+
by: Prisma.UsageRecordScalarFieldEnum[] | Prisma.UsageRecordScalarFieldEnum
|
|
190
|
+
having?: Prisma.UsageRecordScalarWhereWithAggregatesInput
|
|
191
|
+
take?: number
|
|
192
|
+
skip?: number
|
|
193
|
+
_count?: UsageRecordCountAggregateInputType | true
|
|
194
|
+
_avg?: UsageRecordAvgAggregateInputType
|
|
195
|
+
_sum?: UsageRecordSumAggregateInputType
|
|
196
|
+
_min?: UsageRecordMinAggregateInputType
|
|
197
|
+
_max?: UsageRecordMaxAggregateInputType
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type UsageRecordGroupByOutputType = {
|
|
201
|
+
id: string
|
|
202
|
+
workspaceId: string
|
|
203
|
+
metric: string
|
|
204
|
+
period: string
|
|
205
|
+
count: number
|
|
206
|
+
resetAt: Date
|
|
207
|
+
createdAt: Date
|
|
208
|
+
updatedAt: Date
|
|
209
|
+
_count: UsageRecordCountAggregateOutputType | null
|
|
210
|
+
_avg: UsageRecordAvgAggregateOutputType | null
|
|
211
|
+
_sum: UsageRecordSumAggregateOutputType | null
|
|
212
|
+
_min: UsageRecordMinAggregateOutputType | null
|
|
213
|
+
_max: UsageRecordMaxAggregateOutputType | null
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export type GetUsageRecordGroupByPayload<T extends UsageRecordGroupByArgs> = Prisma.PrismaPromise<
|
|
217
|
+
Array<
|
|
218
|
+
Prisma.PickEnumerable<UsageRecordGroupByOutputType, T['by']> &
|
|
219
|
+
{
|
|
220
|
+
[P in ((keyof T) & (keyof UsageRecordGroupByOutputType))]: P extends '_count'
|
|
221
|
+
? T[P] extends boolean
|
|
222
|
+
? number
|
|
223
|
+
: Prisma.GetScalarType<T[P], UsageRecordGroupByOutputType[P]>
|
|
224
|
+
: Prisma.GetScalarType<T[P], UsageRecordGroupByOutputType[P]>
|
|
225
|
+
}
|
|
226
|
+
>
|
|
227
|
+
>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
export type UsageRecordWhereInput = {
|
|
232
|
+
AND?: Prisma.UsageRecordWhereInput | Prisma.UsageRecordWhereInput[]
|
|
233
|
+
OR?: Prisma.UsageRecordWhereInput[]
|
|
234
|
+
NOT?: Prisma.UsageRecordWhereInput | Prisma.UsageRecordWhereInput[]
|
|
235
|
+
id?: Prisma.StringFilter<"UsageRecord"> | string
|
|
236
|
+
workspaceId?: Prisma.StringFilter<"UsageRecord"> | string
|
|
237
|
+
metric?: Prisma.StringFilter<"UsageRecord"> | string
|
|
238
|
+
period?: Prisma.StringFilter<"UsageRecord"> | string
|
|
239
|
+
count?: Prisma.IntFilter<"UsageRecord"> | number
|
|
240
|
+
resetAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
241
|
+
createdAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
242
|
+
updatedAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
243
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type UsageRecordOrderByWithRelationInput = {
|
|
247
|
+
id?: Prisma.SortOrder
|
|
248
|
+
workspaceId?: Prisma.SortOrder
|
|
249
|
+
metric?: Prisma.SortOrder
|
|
250
|
+
period?: Prisma.SortOrder
|
|
251
|
+
count?: Prisma.SortOrder
|
|
252
|
+
resetAt?: Prisma.SortOrder
|
|
253
|
+
createdAt?: Prisma.SortOrder
|
|
254
|
+
updatedAt?: Prisma.SortOrder
|
|
255
|
+
workspace?: Prisma.WorkspaceOrderByWithRelationInput
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type UsageRecordWhereUniqueInput = Prisma.AtLeast<{
|
|
259
|
+
id?: string
|
|
260
|
+
workspaceId_metric_period?: Prisma.UsageRecordWorkspaceIdMetricPeriodCompoundUniqueInput
|
|
261
|
+
AND?: Prisma.UsageRecordWhereInput | Prisma.UsageRecordWhereInput[]
|
|
262
|
+
OR?: Prisma.UsageRecordWhereInput[]
|
|
263
|
+
NOT?: Prisma.UsageRecordWhereInput | Prisma.UsageRecordWhereInput[]
|
|
264
|
+
workspaceId?: Prisma.StringFilter<"UsageRecord"> | string
|
|
265
|
+
metric?: Prisma.StringFilter<"UsageRecord"> | string
|
|
266
|
+
period?: Prisma.StringFilter<"UsageRecord"> | string
|
|
267
|
+
count?: Prisma.IntFilter<"UsageRecord"> | number
|
|
268
|
+
resetAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
269
|
+
createdAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
270
|
+
updatedAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
271
|
+
workspace?: Prisma.XOR<Prisma.WorkspaceScalarRelationFilter, Prisma.WorkspaceWhereInput>
|
|
272
|
+
}, "id" | "workspaceId_metric_period">
|
|
273
|
+
|
|
274
|
+
export type UsageRecordOrderByWithAggregationInput = {
|
|
275
|
+
id?: Prisma.SortOrder
|
|
276
|
+
workspaceId?: Prisma.SortOrder
|
|
277
|
+
metric?: Prisma.SortOrder
|
|
278
|
+
period?: Prisma.SortOrder
|
|
279
|
+
count?: Prisma.SortOrder
|
|
280
|
+
resetAt?: Prisma.SortOrder
|
|
281
|
+
createdAt?: Prisma.SortOrder
|
|
282
|
+
updatedAt?: Prisma.SortOrder
|
|
283
|
+
_count?: Prisma.UsageRecordCountOrderByAggregateInput
|
|
284
|
+
_avg?: Prisma.UsageRecordAvgOrderByAggregateInput
|
|
285
|
+
_max?: Prisma.UsageRecordMaxOrderByAggregateInput
|
|
286
|
+
_min?: Prisma.UsageRecordMinOrderByAggregateInput
|
|
287
|
+
_sum?: Prisma.UsageRecordSumOrderByAggregateInput
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
export type UsageRecordScalarWhereWithAggregatesInput = {
|
|
291
|
+
AND?: Prisma.UsageRecordScalarWhereWithAggregatesInput | Prisma.UsageRecordScalarWhereWithAggregatesInput[]
|
|
292
|
+
OR?: Prisma.UsageRecordScalarWhereWithAggregatesInput[]
|
|
293
|
+
NOT?: Prisma.UsageRecordScalarWhereWithAggregatesInput | Prisma.UsageRecordScalarWhereWithAggregatesInput[]
|
|
294
|
+
id?: Prisma.StringWithAggregatesFilter<"UsageRecord"> | string
|
|
295
|
+
workspaceId?: Prisma.StringWithAggregatesFilter<"UsageRecord"> | string
|
|
296
|
+
metric?: Prisma.StringWithAggregatesFilter<"UsageRecord"> | string
|
|
297
|
+
period?: Prisma.StringWithAggregatesFilter<"UsageRecord"> | string
|
|
298
|
+
count?: Prisma.IntWithAggregatesFilter<"UsageRecord"> | number
|
|
299
|
+
resetAt?: Prisma.DateTimeWithAggregatesFilter<"UsageRecord"> | Date | string
|
|
300
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"UsageRecord"> | Date | string
|
|
301
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"UsageRecord"> | Date | string
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
export type UsageRecordCreateInput = {
|
|
305
|
+
id?: string
|
|
306
|
+
metric: string
|
|
307
|
+
period: string
|
|
308
|
+
count?: number
|
|
309
|
+
resetAt: Date | string
|
|
310
|
+
createdAt?: Date | string
|
|
311
|
+
updatedAt?: Date | string
|
|
312
|
+
workspace: Prisma.WorkspaceCreateNestedOneWithoutUsageRecordsInput
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export type UsageRecordUncheckedCreateInput = {
|
|
316
|
+
id?: string
|
|
317
|
+
workspaceId: string
|
|
318
|
+
metric: string
|
|
319
|
+
period: string
|
|
320
|
+
count?: number
|
|
321
|
+
resetAt: Date | string
|
|
322
|
+
createdAt?: Date | string
|
|
323
|
+
updatedAt?: Date | string
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export type UsageRecordUpdateInput = {
|
|
327
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
328
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
329
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
330
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
331
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
332
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
333
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
334
|
+
workspace?: Prisma.WorkspaceUpdateOneRequiredWithoutUsageRecordsNestedInput
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export type UsageRecordUncheckedUpdateInput = {
|
|
338
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
339
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
340
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
341
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
342
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
343
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
344
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
345
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type UsageRecordCreateManyInput = {
|
|
349
|
+
id?: string
|
|
350
|
+
workspaceId: string
|
|
351
|
+
metric: string
|
|
352
|
+
period: string
|
|
353
|
+
count?: number
|
|
354
|
+
resetAt: Date | string
|
|
355
|
+
createdAt?: Date | string
|
|
356
|
+
updatedAt?: Date | string
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export type UsageRecordUpdateManyMutationInput = {
|
|
360
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
361
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
362
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
363
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
364
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
365
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
366
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export type UsageRecordUncheckedUpdateManyInput = {
|
|
370
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
371
|
+
workspaceId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
372
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
373
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
374
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
375
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
376
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
377
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export type UsageRecordListRelationFilter = {
|
|
381
|
+
every?: Prisma.UsageRecordWhereInput
|
|
382
|
+
some?: Prisma.UsageRecordWhereInput
|
|
383
|
+
none?: Prisma.UsageRecordWhereInput
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export type UsageRecordOrderByRelationAggregateInput = {
|
|
387
|
+
_count?: Prisma.SortOrder
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type UsageRecordWorkspaceIdMetricPeriodCompoundUniqueInput = {
|
|
391
|
+
workspaceId: string
|
|
392
|
+
metric: string
|
|
393
|
+
period: string
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
export type UsageRecordCountOrderByAggregateInput = {
|
|
397
|
+
id?: Prisma.SortOrder
|
|
398
|
+
workspaceId?: Prisma.SortOrder
|
|
399
|
+
metric?: Prisma.SortOrder
|
|
400
|
+
period?: Prisma.SortOrder
|
|
401
|
+
count?: Prisma.SortOrder
|
|
402
|
+
resetAt?: Prisma.SortOrder
|
|
403
|
+
createdAt?: Prisma.SortOrder
|
|
404
|
+
updatedAt?: Prisma.SortOrder
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export type UsageRecordAvgOrderByAggregateInput = {
|
|
408
|
+
count?: Prisma.SortOrder
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export type UsageRecordMaxOrderByAggregateInput = {
|
|
412
|
+
id?: Prisma.SortOrder
|
|
413
|
+
workspaceId?: Prisma.SortOrder
|
|
414
|
+
metric?: Prisma.SortOrder
|
|
415
|
+
period?: Prisma.SortOrder
|
|
416
|
+
count?: Prisma.SortOrder
|
|
417
|
+
resetAt?: Prisma.SortOrder
|
|
418
|
+
createdAt?: Prisma.SortOrder
|
|
419
|
+
updatedAt?: Prisma.SortOrder
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
export type UsageRecordMinOrderByAggregateInput = {
|
|
423
|
+
id?: Prisma.SortOrder
|
|
424
|
+
workspaceId?: Prisma.SortOrder
|
|
425
|
+
metric?: Prisma.SortOrder
|
|
426
|
+
period?: Prisma.SortOrder
|
|
427
|
+
count?: Prisma.SortOrder
|
|
428
|
+
resetAt?: Prisma.SortOrder
|
|
429
|
+
createdAt?: Prisma.SortOrder
|
|
430
|
+
updatedAt?: Prisma.SortOrder
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export type UsageRecordSumOrderByAggregateInput = {
|
|
434
|
+
count?: Prisma.SortOrder
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export type UsageRecordCreateNestedManyWithoutWorkspaceInput = {
|
|
438
|
+
create?: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput> | Prisma.UsageRecordCreateWithoutWorkspaceInput[] | Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput[]
|
|
439
|
+
connectOrCreate?: Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput | Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput[]
|
|
440
|
+
createMany?: Prisma.UsageRecordCreateManyWorkspaceInputEnvelope
|
|
441
|
+
connect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export type UsageRecordUncheckedCreateNestedManyWithoutWorkspaceInput = {
|
|
445
|
+
create?: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput> | Prisma.UsageRecordCreateWithoutWorkspaceInput[] | Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput[]
|
|
446
|
+
connectOrCreate?: Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput | Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput[]
|
|
447
|
+
createMany?: Prisma.UsageRecordCreateManyWorkspaceInputEnvelope
|
|
448
|
+
connect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
export type UsageRecordUpdateManyWithoutWorkspaceNestedInput = {
|
|
452
|
+
create?: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput> | Prisma.UsageRecordCreateWithoutWorkspaceInput[] | Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput[]
|
|
453
|
+
connectOrCreate?: Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput | Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput[]
|
|
454
|
+
upsert?: Prisma.UsageRecordUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.UsageRecordUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
455
|
+
createMany?: Prisma.UsageRecordCreateManyWorkspaceInputEnvelope
|
|
456
|
+
set?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
457
|
+
disconnect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
458
|
+
delete?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
459
|
+
connect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
460
|
+
update?: Prisma.UsageRecordUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.UsageRecordUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
461
|
+
updateMany?: Prisma.UsageRecordUpdateManyWithWhereWithoutWorkspaceInput | Prisma.UsageRecordUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
462
|
+
deleteMany?: Prisma.UsageRecordScalarWhereInput | Prisma.UsageRecordScalarWhereInput[]
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export type UsageRecordUncheckedUpdateManyWithoutWorkspaceNestedInput = {
|
|
466
|
+
create?: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput> | Prisma.UsageRecordCreateWithoutWorkspaceInput[] | Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput[]
|
|
467
|
+
connectOrCreate?: Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput | Prisma.UsageRecordCreateOrConnectWithoutWorkspaceInput[]
|
|
468
|
+
upsert?: Prisma.UsageRecordUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.UsageRecordUpsertWithWhereUniqueWithoutWorkspaceInput[]
|
|
469
|
+
createMany?: Prisma.UsageRecordCreateManyWorkspaceInputEnvelope
|
|
470
|
+
set?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
471
|
+
disconnect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
472
|
+
delete?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
473
|
+
connect?: Prisma.UsageRecordWhereUniqueInput | Prisma.UsageRecordWhereUniqueInput[]
|
|
474
|
+
update?: Prisma.UsageRecordUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.UsageRecordUpdateWithWhereUniqueWithoutWorkspaceInput[]
|
|
475
|
+
updateMany?: Prisma.UsageRecordUpdateManyWithWhereWithoutWorkspaceInput | Prisma.UsageRecordUpdateManyWithWhereWithoutWorkspaceInput[]
|
|
476
|
+
deleteMany?: Prisma.UsageRecordScalarWhereInput | Prisma.UsageRecordScalarWhereInput[]
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export type UsageRecordCreateWithoutWorkspaceInput = {
|
|
480
|
+
id?: string
|
|
481
|
+
metric: string
|
|
482
|
+
period: string
|
|
483
|
+
count?: number
|
|
484
|
+
resetAt: Date | string
|
|
485
|
+
createdAt?: Date | string
|
|
486
|
+
updatedAt?: Date | string
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export type UsageRecordUncheckedCreateWithoutWorkspaceInput = {
|
|
490
|
+
id?: string
|
|
491
|
+
metric: string
|
|
492
|
+
period: string
|
|
493
|
+
count?: number
|
|
494
|
+
resetAt: Date | string
|
|
495
|
+
createdAt?: Date | string
|
|
496
|
+
updatedAt?: Date | string
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export type UsageRecordCreateOrConnectWithoutWorkspaceInput = {
|
|
500
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
501
|
+
create: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput>
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export type UsageRecordCreateManyWorkspaceInputEnvelope = {
|
|
505
|
+
data: Prisma.UsageRecordCreateManyWorkspaceInput | Prisma.UsageRecordCreateManyWorkspaceInput[]
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
export type UsageRecordUpsertWithWhereUniqueWithoutWorkspaceInput = {
|
|
509
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
510
|
+
update: Prisma.XOR<Prisma.UsageRecordUpdateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedUpdateWithoutWorkspaceInput>
|
|
511
|
+
create: Prisma.XOR<Prisma.UsageRecordCreateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedCreateWithoutWorkspaceInput>
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export type UsageRecordUpdateWithWhereUniqueWithoutWorkspaceInput = {
|
|
515
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
516
|
+
data: Prisma.XOR<Prisma.UsageRecordUpdateWithoutWorkspaceInput, Prisma.UsageRecordUncheckedUpdateWithoutWorkspaceInput>
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export type UsageRecordUpdateManyWithWhereWithoutWorkspaceInput = {
|
|
520
|
+
where: Prisma.UsageRecordScalarWhereInput
|
|
521
|
+
data: Prisma.XOR<Prisma.UsageRecordUpdateManyMutationInput, Prisma.UsageRecordUncheckedUpdateManyWithoutWorkspaceInput>
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export type UsageRecordScalarWhereInput = {
|
|
525
|
+
AND?: Prisma.UsageRecordScalarWhereInput | Prisma.UsageRecordScalarWhereInput[]
|
|
526
|
+
OR?: Prisma.UsageRecordScalarWhereInput[]
|
|
527
|
+
NOT?: Prisma.UsageRecordScalarWhereInput | Prisma.UsageRecordScalarWhereInput[]
|
|
528
|
+
id?: Prisma.StringFilter<"UsageRecord"> | string
|
|
529
|
+
workspaceId?: Prisma.StringFilter<"UsageRecord"> | string
|
|
530
|
+
metric?: Prisma.StringFilter<"UsageRecord"> | string
|
|
531
|
+
period?: Prisma.StringFilter<"UsageRecord"> | string
|
|
532
|
+
count?: Prisma.IntFilter<"UsageRecord"> | number
|
|
533
|
+
resetAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
534
|
+
createdAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
535
|
+
updatedAt?: Prisma.DateTimeFilter<"UsageRecord"> | Date | string
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type UsageRecordCreateManyWorkspaceInput = {
|
|
539
|
+
id?: string
|
|
540
|
+
metric: string
|
|
541
|
+
period: string
|
|
542
|
+
count?: number
|
|
543
|
+
resetAt: Date | string
|
|
544
|
+
createdAt?: Date | string
|
|
545
|
+
updatedAt?: Date | string
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export type UsageRecordUpdateWithoutWorkspaceInput = {
|
|
549
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
550
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
551
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
552
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
553
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
554
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
555
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export type UsageRecordUncheckedUpdateWithoutWorkspaceInput = {
|
|
559
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
560
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
561
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
562
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
563
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
564
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
565
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export type UsageRecordUncheckedUpdateManyWithoutWorkspaceInput = {
|
|
569
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
570
|
+
metric?: Prisma.StringFieldUpdateOperationsInput | string
|
|
571
|
+
period?: Prisma.StringFieldUpdateOperationsInput | string
|
|
572
|
+
count?: Prisma.IntFieldUpdateOperationsInput | number
|
|
573
|
+
resetAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
574
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
575
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
|
|
580
|
+
export type UsageRecordSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
581
|
+
id?: boolean
|
|
582
|
+
workspaceId?: boolean
|
|
583
|
+
metric?: boolean
|
|
584
|
+
period?: boolean
|
|
585
|
+
count?: boolean
|
|
586
|
+
resetAt?: boolean
|
|
587
|
+
createdAt?: boolean
|
|
588
|
+
updatedAt?: boolean
|
|
589
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
590
|
+
}, ExtArgs["result"]["usageRecord"]>
|
|
591
|
+
|
|
592
|
+
export type UsageRecordSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
593
|
+
id?: boolean
|
|
594
|
+
workspaceId?: boolean
|
|
595
|
+
metric?: boolean
|
|
596
|
+
period?: boolean
|
|
597
|
+
count?: boolean
|
|
598
|
+
resetAt?: boolean
|
|
599
|
+
createdAt?: boolean
|
|
600
|
+
updatedAt?: boolean
|
|
601
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
602
|
+
}, ExtArgs["result"]["usageRecord"]>
|
|
603
|
+
|
|
604
|
+
export type UsageRecordSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
605
|
+
id?: boolean
|
|
606
|
+
workspaceId?: boolean
|
|
607
|
+
metric?: boolean
|
|
608
|
+
period?: boolean
|
|
609
|
+
count?: boolean
|
|
610
|
+
resetAt?: boolean
|
|
611
|
+
createdAt?: boolean
|
|
612
|
+
updatedAt?: boolean
|
|
613
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
614
|
+
}, ExtArgs["result"]["usageRecord"]>
|
|
615
|
+
|
|
616
|
+
export type UsageRecordSelectScalar = {
|
|
617
|
+
id?: boolean
|
|
618
|
+
workspaceId?: boolean
|
|
619
|
+
metric?: boolean
|
|
620
|
+
period?: boolean
|
|
621
|
+
count?: boolean
|
|
622
|
+
resetAt?: boolean
|
|
623
|
+
createdAt?: boolean
|
|
624
|
+
updatedAt?: boolean
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
export type UsageRecordOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "metric" | "period" | "count" | "resetAt" | "createdAt" | "updatedAt", ExtArgs["result"]["usageRecord"]>
|
|
628
|
+
export type UsageRecordInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
629
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
630
|
+
}
|
|
631
|
+
export type UsageRecordIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
632
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
633
|
+
}
|
|
634
|
+
export type UsageRecordIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
635
|
+
workspace?: boolean | Prisma.WorkspaceDefaultArgs<ExtArgs>
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export type $UsageRecordPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
639
|
+
name: "UsageRecord"
|
|
640
|
+
objects: {
|
|
641
|
+
workspace: Prisma.$WorkspacePayload<ExtArgs>
|
|
642
|
+
}
|
|
643
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
644
|
+
id: string
|
|
645
|
+
workspaceId: string
|
|
646
|
+
metric: string
|
|
647
|
+
period: string
|
|
648
|
+
count: number
|
|
649
|
+
resetAt: Date
|
|
650
|
+
createdAt: Date
|
|
651
|
+
updatedAt: Date
|
|
652
|
+
}, ExtArgs["result"]["usageRecord"]>
|
|
653
|
+
composites: {}
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export type UsageRecordGetPayload<S extends boolean | null | undefined | UsageRecordDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload, S>
|
|
657
|
+
|
|
658
|
+
export type UsageRecordCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
659
|
+
Omit<UsageRecordFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
660
|
+
select?: UsageRecordCountAggregateInputType | true
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
export interface UsageRecordDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
664
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['UsageRecord'], meta: { name: 'UsageRecord' } }
|
|
665
|
+
/**
|
|
666
|
+
* Find zero or one UsageRecord that matches the filter.
|
|
667
|
+
* @param {UsageRecordFindUniqueArgs} args - Arguments to find a UsageRecord
|
|
668
|
+
* @example
|
|
669
|
+
* // Get one UsageRecord
|
|
670
|
+
* const usageRecord = await prisma.usageRecord.findUnique({
|
|
671
|
+
* where: {
|
|
672
|
+
* // ... provide filter here
|
|
673
|
+
* }
|
|
674
|
+
* })
|
|
675
|
+
*/
|
|
676
|
+
findUnique<T extends UsageRecordFindUniqueArgs>(args: Prisma.SelectSubset<T, UsageRecordFindUniqueArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Find one UsageRecord that matches the filter or throw an error with `error.code='P2025'`
|
|
680
|
+
* if no matches were found.
|
|
681
|
+
* @param {UsageRecordFindUniqueOrThrowArgs} args - Arguments to find a UsageRecord
|
|
682
|
+
* @example
|
|
683
|
+
* // Get one UsageRecord
|
|
684
|
+
* const usageRecord = await prisma.usageRecord.findUniqueOrThrow({
|
|
685
|
+
* where: {
|
|
686
|
+
* // ... provide filter here
|
|
687
|
+
* }
|
|
688
|
+
* })
|
|
689
|
+
*/
|
|
690
|
+
findUniqueOrThrow<T extends UsageRecordFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, UsageRecordFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Find the first UsageRecord that matches the filter.
|
|
694
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
695
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
696
|
+
* @param {UsageRecordFindFirstArgs} args - Arguments to find a UsageRecord
|
|
697
|
+
* @example
|
|
698
|
+
* // Get one UsageRecord
|
|
699
|
+
* const usageRecord = await prisma.usageRecord.findFirst({
|
|
700
|
+
* where: {
|
|
701
|
+
* // ... provide filter here
|
|
702
|
+
* }
|
|
703
|
+
* })
|
|
704
|
+
*/
|
|
705
|
+
findFirst<T extends UsageRecordFindFirstArgs>(args?: Prisma.SelectSubset<T, UsageRecordFindFirstArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Find the first UsageRecord that matches the filter or
|
|
709
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
710
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
711
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
712
|
+
* @param {UsageRecordFindFirstOrThrowArgs} args - Arguments to find a UsageRecord
|
|
713
|
+
* @example
|
|
714
|
+
* // Get one UsageRecord
|
|
715
|
+
* const usageRecord = await prisma.usageRecord.findFirstOrThrow({
|
|
716
|
+
* where: {
|
|
717
|
+
* // ... provide filter here
|
|
718
|
+
* }
|
|
719
|
+
* })
|
|
720
|
+
*/
|
|
721
|
+
findFirstOrThrow<T extends UsageRecordFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, UsageRecordFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Find zero or more UsageRecords that matches the filter.
|
|
725
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
726
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
727
|
+
* @param {UsageRecordFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
728
|
+
* @example
|
|
729
|
+
* // Get all UsageRecords
|
|
730
|
+
* const usageRecords = await prisma.usageRecord.findMany()
|
|
731
|
+
*
|
|
732
|
+
* // Get first 10 UsageRecords
|
|
733
|
+
* const usageRecords = await prisma.usageRecord.findMany({ take: 10 })
|
|
734
|
+
*
|
|
735
|
+
* // Only select the `id`
|
|
736
|
+
* const usageRecordWithIdOnly = await prisma.usageRecord.findMany({ select: { id: true } })
|
|
737
|
+
*
|
|
738
|
+
*/
|
|
739
|
+
findMany<T extends UsageRecordFindManyArgs>(args?: Prisma.SelectSubset<T, UsageRecordFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* Create a UsageRecord.
|
|
743
|
+
* @param {UsageRecordCreateArgs} args - Arguments to create a UsageRecord.
|
|
744
|
+
* @example
|
|
745
|
+
* // Create one UsageRecord
|
|
746
|
+
* const UsageRecord = await prisma.usageRecord.create({
|
|
747
|
+
* data: {
|
|
748
|
+
* // ... data to create a UsageRecord
|
|
749
|
+
* }
|
|
750
|
+
* })
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
create<T extends UsageRecordCreateArgs>(args: Prisma.SelectSubset<T, UsageRecordCreateArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Create many UsageRecords.
|
|
757
|
+
* @param {UsageRecordCreateManyArgs} args - Arguments to create many UsageRecords.
|
|
758
|
+
* @example
|
|
759
|
+
* // Create many UsageRecords
|
|
760
|
+
* const usageRecord = await prisma.usageRecord.createMany({
|
|
761
|
+
* data: [
|
|
762
|
+
* // ... provide data here
|
|
763
|
+
* ]
|
|
764
|
+
* })
|
|
765
|
+
*
|
|
766
|
+
*/
|
|
767
|
+
createMany<T extends UsageRecordCreateManyArgs>(args?: Prisma.SelectSubset<T, UsageRecordCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* Create many UsageRecords and returns the data saved in the database.
|
|
771
|
+
* @param {UsageRecordCreateManyAndReturnArgs} args - Arguments to create many UsageRecords.
|
|
772
|
+
* @example
|
|
773
|
+
* // Create many UsageRecords
|
|
774
|
+
* const usageRecord = await prisma.usageRecord.createManyAndReturn({
|
|
775
|
+
* data: [
|
|
776
|
+
* // ... provide data here
|
|
777
|
+
* ]
|
|
778
|
+
* })
|
|
779
|
+
*
|
|
780
|
+
* // Create many UsageRecords and only return the `id`
|
|
781
|
+
* const usageRecordWithIdOnly = await prisma.usageRecord.createManyAndReturn({
|
|
782
|
+
* select: { id: true },
|
|
783
|
+
* data: [
|
|
784
|
+
* // ... provide data here
|
|
785
|
+
* ]
|
|
786
|
+
* })
|
|
787
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
788
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
createManyAndReturn<T extends UsageRecordCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, UsageRecordCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Delete a UsageRecord.
|
|
795
|
+
* @param {UsageRecordDeleteArgs} args - Arguments to delete one UsageRecord.
|
|
796
|
+
* @example
|
|
797
|
+
* // Delete one UsageRecord
|
|
798
|
+
* const UsageRecord = await prisma.usageRecord.delete({
|
|
799
|
+
* where: {
|
|
800
|
+
* // ... filter to delete one UsageRecord
|
|
801
|
+
* }
|
|
802
|
+
* })
|
|
803
|
+
*
|
|
804
|
+
*/
|
|
805
|
+
delete<T extends UsageRecordDeleteArgs>(args: Prisma.SelectSubset<T, UsageRecordDeleteArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* Update one UsageRecord.
|
|
809
|
+
* @param {UsageRecordUpdateArgs} args - Arguments to update one UsageRecord.
|
|
810
|
+
* @example
|
|
811
|
+
* // Update one UsageRecord
|
|
812
|
+
* const usageRecord = await prisma.usageRecord.update({
|
|
813
|
+
* where: {
|
|
814
|
+
* // ... provide filter here
|
|
815
|
+
* },
|
|
816
|
+
* data: {
|
|
817
|
+
* // ... provide data here
|
|
818
|
+
* }
|
|
819
|
+
* })
|
|
820
|
+
*
|
|
821
|
+
*/
|
|
822
|
+
update<T extends UsageRecordUpdateArgs>(args: Prisma.SelectSubset<T, UsageRecordUpdateArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Delete zero or more UsageRecords.
|
|
826
|
+
* @param {UsageRecordDeleteManyArgs} args - Arguments to filter UsageRecords to delete.
|
|
827
|
+
* @example
|
|
828
|
+
* // Delete a few UsageRecords
|
|
829
|
+
* const { count } = await prisma.usageRecord.deleteMany({
|
|
830
|
+
* where: {
|
|
831
|
+
* // ... provide filter here
|
|
832
|
+
* }
|
|
833
|
+
* })
|
|
834
|
+
*
|
|
835
|
+
*/
|
|
836
|
+
deleteMany<T extends UsageRecordDeleteManyArgs>(args?: Prisma.SelectSubset<T, UsageRecordDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Update zero or more UsageRecords.
|
|
840
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
841
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
842
|
+
* @param {UsageRecordUpdateManyArgs} args - Arguments to update one or more rows.
|
|
843
|
+
* @example
|
|
844
|
+
* // Update many UsageRecords
|
|
845
|
+
* const usageRecord = await prisma.usageRecord.updateMany({
|
|
846
|
+
* where: {
|
|
847
|
+
* // ... provide filter here
|
|
848
|
+
* },
|
|
849
|
+
* data: {
|
|
850
|
+
* // ... provide data here
|
|
851
|
+
* }
|
|
852
|
+
* })
|
|
853
|
+
*
|
|
854
|
+
*/
|
|
855
|
+
updateMany<T extends UsageRecordUpdateManyArgs>(args: Prisma.SelectSubset<T, UsageRecordUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
* Update zero or more UsageRecords and returns the data updated in the database.
|
|
859
|
+
* @param {UsageRecordUpdateManyAndReturnArgs} args - Arguments to update many UsageRecords.
|
|
860
|
+
* @example
|
|
861
|
+
* // Update many UsageRecords
|
|
862
|
+
* const usageRecord = await prisma.usageRecord.updateManyAndReturn({
|
|
863
|
+
* where: {
|
|
864
|
+
* // ... provide filter here
|
|
865
|
+
* },
|
|
866
|
+
* data: [
|
|
867
|
+
* // ... provide data here
|
|
868
|
+
* ]
|
|
869
|
+
* })
|
|
870
|
+
*
|
|
871
|
+
* // Update zero or more UsageRecords and only return the `id`
|
|
872
|
+
* const usageRecordWithIdOnly = await prisma.usageRecord.updateManyAndReturn({
|
|
873
|
+
* select: { id: true },
|
|
874
|
+
* where: {
|
|
875
|
+
* // ... provide filter here
|
|
876
|
+
* },
|
|
877
|
+
* data: [
|
|
878
|
+
* // ... provide data here
|
|
879
|
+
* ]
|
|
880
|
+
* })
|
|
881
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
882
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
883
|
+
*
|
|
884
|
+
*/
|
|
885
|
+
updateManyAndReturn<T extends UsageRecordUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, UsageRecordUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Create or update one UsageRecord.
|
|
889
|
+
* @param {UsageRecordUpsertArgs} args - Arguments to update or create a UsageRecord.
|
|
890
|
+
* @example
|
|
891
|
+
* // Update or create a UsageRecord
|
|
892
|
+
* const usageRecord = await prisma.usageRecord.upsert({
|
|
893
|
+
* create: {
|
|
894
|
+
* // ... data to create a UsageRecord
|
|
895
|
+
* },
|
|
896
|
+
* update: {
|
|
897
|
+
* // ... in case it already exists, update
|
|
898
|
+
* },
|
|
899
|
+
* where: {
|
|
900
|
+
* // ... the filter for the UsageRecord we want to update
|
|
901
|
+
* }
|
|
902
|
+
* })
|
|
903
|
+
*/
|
|
904
|
+
upsert<T extends UsageRecordUpsertArgs>(args: Prisma.SelectSubset<T, UsageRecordUpsertArgs<ExtArgs>>): Prisma.Prisma__UsageRecordClient<runtime.Types.Result.GetResult<Prisma.$UsageRecordPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
* Count the number of UsageRecords.
|
|
909
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
910
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
911
|
+
* @param {UsageRecordCountArgs} args - Arguments to filter UsageRecords to count.
|
|
912
|
+
* @example
|
|
913
|
+
* // Count the number of UsageRecords
|
|
914
|
+
* const count = await prisma.usageRecord.count({
|
|
915
|
+
* where: {
|
|
916
|
+
* // ... the filter for the UsageRecords we want to count
|
|
917
|
+
* }
|
|
918
|
+
* })
|
|
919
|
+
**/
|
|
920
|
+
count<T extends UsageRecordCountArgs>(
|
|
921
|
+
args?: Prisma.Subset<T, UsageRecordCountArgs>,
|
|
922
|
+
): Prisma.PrismaPromise<
|
|
923
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
924
|
+
? T['select'] extends true
|
|
925
|
+
? number
|
|
926
|
+
: Prisma.GetScalarType<T['select'], UsageRecordCountAggregateOutputType>
|
|
927
|
+
: number
|
|
928
|
+
>
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Allows you to perform aggregations operations on a UsageRecord.
|
|
932
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
933
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
934
|
+
* @param {UsageRecordAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
935
|
+
* @example
|
|
936
|
+
* // Ordered by age ascending
|
|
937
|
+
* // Where email contains prisma.io
|
|
938
|
+
* // Limited to the 10 users
|
|
939
|
+
* const aggregations = await prisma.user.aggregate({
|
|
940
|
+
* _avg: {
|
|
941
|
+
* age: true,
|
|
942
|
+
* },
|
|
943
|
+
* where: {
|
|
944
|
+
* email: {
|
|
945
|
+
* contains: "prisma.io",
|
|
946
|
+
* },
|
|
947
|
+
* },
|
|
948
|
+
* orderBy: {
|
|
949
|
+
* age: "asc",
|
|
950
|
+
* },
|
|
951
|
+
* take: 10,
|
|
952
|
+
* })
|
|
953
|
+
**/
|
|
954
|
+
aggregate<T extends UsageRecordAggregateArgs>(args: Prisma.Subset<T, UsageRecordAggregateArgs>): Prisma.PrismaPromise<GetUsageRecordAggregateType<T>>
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Group by UsageRecord.
|
|
958
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
959
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
960
|
+
* @param {UsageRecordGroupByArgs} args - Group by arguments.
|
|
961
|
+
* @example
|
|
962
|
+
* // Group by city, order by createdAt, get count
|
|
963
|
+
* const result = await prisma.user.groupBy({
|
|
964
|
+
* by: ['city', 'createdAt'],
|
|
965
|
+
* orderBy: {
|
|
966
|
+
* createdAt: true
|
|
967
|
+
* },
|
|
968
|
+
* _count: {
|
|
969
|
+
* _all: true
|
|
970
|
+
* },
|
|
971
|
+
* })
|
|
972
|
+
*
|
|
973
|
+
**/
|
|
974
|
+
groupBy<
|
|
975
|
+
T extends UsageRecordGroupByArgs,
|
|
976
|
+
HasSelectOrTake extends Prisma.Or<
|
|
977
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
978
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
979
|
+
>,
|
|
980
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
981
|
+
? { orderBy: UsageRecordGroupByArgs['orderBy'] }
|
|
982
|
+
: { orderBy?: UsageRecordGroupByArgs['orderBy'] },
|
|
983
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
984
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
985
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
986
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
987
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
988
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
989
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
990
|
+
? `Error: "by" must not be empty.`
|
|
991
|
+
: HavingValid extends Prisma.False
|
|
992
|
+
? {
|
|
993
|
+
[P in HavingFields]: P extends ByFields
|
|
994
|
+
? never
|
|
995
|
+
: P extends string
|
|
996
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
997
|
+
: [
|
|
998
|
+
Error,
|
|
999
|
+
'Field ',
|
|
1000
|
+
P,
|
|
1001
|
+
` in "having" needs to be provided in "by"`,
|
|
1002
|
+
]
|
|
1003
|
+
}[HavingFields]
|
|
1004
|
+
: 'take' extends Prisma.Keys<T>
|
|
1005
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1006
|
+
? ByValid extends Prisma.True
|
|
1007
|
+
? {}
|
|
1008
|
+
: {
|
|
1009
|
+
[P in OrderFields]: P extends ByFields
|
|
1010
|
+
? never
|
|
1011
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1012
|
+
}[OrderFields]
|
|
1013
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1014
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1015
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1016
|
+
? ByValid extends Prisma.True
|
|
1017
|
+
? {}
|
|
1018
|
+
: {
|
|
1019
|
+
[P in OrderFields]: P extends ByFields
|
|
1020
|
+
? never
|
|
1021
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1022
|
+
}[OrderFields]
|
|
1023
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1024
|
+
: ByValid extends Prisma.True
|
|
1025
|
+
? {}
|
|
1026
|
+
: {
|
|
1027
|
+
[P in OrderFields]: P extends ByFields
|
|
1028
|
+
? never
|
|
1029
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1030
|
+
}[OrderFields]
|
|
1031
|
+
>(args: Prisma.SubsetIntersection<T, UsageRecordGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetUsageRecordGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1032
|
+
/**
|
|
1033
|
+
* Fields of the UsageRecord model
|
|
1034
|
+
*/
|
|
1035
|
+
readonly fields: UsageRecordFieldRefs;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* The delegate class that acts as a "Promise-like" for UsageRecord.
|
|
1040
|
+
* Why is this prefixed with `Prisma__`?
|
|
1041
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1042
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1043
|
+
*/
|
|
1044
|
+
export interface Prisma__UsageRecordClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1045
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1046
|
+
workspace<T extends Prisma.WorkspaceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.WorkspaceDefaultArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1047
|
+
/**
|
|
1048
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1049
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1050
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1051
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1052
|
+
*/
|
|
1053
|
+
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>
|
|
1054
|
+
/**
|
|
1055
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1056
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1057
|
+
* @returns A Promise for the completion of the callback.
|
|
1058
|
+
*/
|
|
1059
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1060
|
+
/**
|
|
1061
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1062
|
+
* resolved value cannot be modified from the callback.
|
|
1063
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1064
|
+
* @returns A Promise for the completion of the callback.
|
|
1065
|
+
*/
|
|
1066
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Fields of the UsageRecord model
|
|
1074
|
+
*/
|
|
1075
|
+
export interface UsageRecordFieldRefs {
|
|
1076
|
+
readonly id: Prisma.FieldRef<"UsageRecord", 'String'>
|
|
1077
|
+
readonly workspaceId: Prisma.FieldRef<"UsageRecord", 'String'>
|
|
1078
|
+
readonly metric: Prisma.FieldRef<"UsageRecord", 'String'>
|
|
1079
|
+
readonly period: Prisma.FieldRef<"UsageRecord", 'String'>
|
|
1080
|
+
readonly count: Prisma.FieldRef<"UsageRecord", 'Int'>
|
|
1081
|
+
readonly resetAt: Prisma.FieldRef<"UsageRecord", 'DateTime'>
|
|
1082
|
+
readonly createdAt: Prisma.FieldRef<"UsageRecord", 'DateTime'>
|
|
1083
|
+
readonly updatedAt: Prisma.FieldRef<"UsageRecord", 'DateTime'>
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
// Custom InputTypes
|
|
1088
|
+
/**
|
|
1089
|
+
* UsageRecord findUnique
|
|
1090
|
+
*/
|
|
1091
|
+
export type UsageRecordFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1092
|
+
/**
|
|
1093
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1094
|
+
*/
|
|
1095
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1096
|
+
/**
|
|
1097
|
+
* Omit specific fields from the UsageRecord
|
|
1098
|
+
*/
|
|
1099
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1100
|
+
/**
|
|
1101
|
+
* Choose, which related nodes to fetch as well
|
|
1102
|
+
*/
|
|
1103
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1104
|
+
/**
|
|
1105
|
+
* Filter, which UsageRecord to fetch.
|
|
1106
|
+
*/
|
|
1107
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* UsageRecord findUniqueOrThrow
|
|
1112
|
+
*/
|
|
1113
|
+
export type UsageRecordFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1114
|
+
/**
|
|
1115
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1116
|
+
*/
|
|
1117
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1118
|
+
/**
|
|
1119
|
+
* Omit specific fields from the UsageRecord
|
|
1120
|
+
*/
|
|
1121
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1122
|
+
/**
|
|
1123
|
+
* Choose, which related nodes to fetch as well
|
|
1124
|
+
*/
|
|
1125
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1126
|
+
/**
|
|
1127
|
+
* Filter, which UsageRecord to fetch.
|
|
1128
|
+
*/
|
|
1129
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* UsageRecord findFirst
|
|
1134
|
+
*/
|
|
1135
|
+
export type UsageRecordFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1136
|
+
/**
|
|
1137
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1138
|
+
*/
|
|
1139
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1140
|
+
/**
|
|
1141
|
+
* Omit specific fields from the UsageRecord
|
|
1142
|
+
*/
|
|
1143
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1144
|
+
/**
|
|
1145
|
+
* Choose, which related nodes to fetch as well
|
|
1146
|
+
*/
|
|
1147
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1148
|
+
/**
|
|
1149
|
+
* Filter, which UsageRecord to fetch.
|
|
1150
|
+
*/
|
|
1151
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1152
|
+
/**
|
|
1153
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1154
|
+
*
|
|
1155
|
+
* Determine the order of UsageRecords to fetch.
|
|
1156
|
+
*/
|
|
1157
|
+
orderBy?: Prisma.UsageRecordOrderByWithRelationInput | Prisma.UsageRecordOrderByWithRelationInput[]
|
|
1158
|
+
/**
|
|
1159
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1160
|
+
*
|
|
1161
|
+
* Sets the position for searching for UsageRecords.
|
|
1162
|
+
*/
|
|
1163
|
+
cursor?: Prisma.UsageRecordWhereUniqueInput
|
|
1164
|
+
/**
|
|
1165
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1166
|
+
*
|
|
1167
|
+
* Take `±n` UsageRecords from the position of the cursor.
|
|
1168
|
+
*/
|
|
1169
|
+
take?: number
|
|
1170
|
+
/**
|
|
1171
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1172
|
+
*
|
|
1173
|
+
* Skip the first `n` UsageRecords.
|
|
1174
|
+
*/
|
|
1175
|
+
skip?: number
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1178
|
+
*
|
|
1179
|
+
* Filter by unique combinations of UsageRecords.
|
|
1180
|
+
*/
|
|
1181
|
+
distinct?: Prisma.UsageRecordScalarFieldEnum | Prisma.UsageRecordScalarFieldEnum[]
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* UsageRecord findFirstOrThrow
|
|
1186
|
+
*/
|
|
1187
|
+
export type UsageRecordFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1188
|
+
/**
|
|
1189
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1190
|
+
*/
|
|
1191
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1192
|
+
/**
|
|
1193
|
+
* Omit specific fields from the UsageRecord
|
|
1194
|
+
*/
|
|
1195
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1196
|
+
/**
|
|
1197
|
+
* Choose, which related nodes to fetch as well
|
|
1198
|
+
*/
|
|
1199
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1200
|
+
/**
|
|
1201
|
+
* Filter, which UsageRecord to fetch.
|
|
1202
|
+
*/
|
|
1203
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1204
|
+
/**
|
|
1205
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1206
|
+
*
|
|
1207
|
+
* Determine the order of UsageRecords to fetch.
|
|
1208
|
+
*/
|
|
1209
|
+
orderBy?: Prisma.UsageRecordOrderByWithRelationInput | Prisma.UsageRecordOrderByWithRelationInput[]
|
|
1210
|
+
/**
|
|
1211
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1212
|
+
*
|
|
1213
|
+
* Sets the position for searching for UsageRecords.
|
|
1214
|
+
*/
|
|
1215
|
+
cursor?: Prisma.UsageRecordWhereUniqueInput
|
|
1216
|
+
/**
|
|
1217
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1218
|
+
*
|
|
1219
|
+
* Take `±n` UsageRecords from the position of the cursor.
|
|
1220
|
+
*/
|
|
1221
|
+
take?: number
|
|
1222
|
+
/**
|
|
1223
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1224
|
+
*
|
|
1225
|
+
* Skip the first `n` UsageRecords.
|
|
1226
|
+
*/
|
|
1227
|
+
skip?: number
|
|
1228
|
+
/**
|
|
1229
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1230
|
+
*
|
|
1231
|
+
* Filter by unique combinations of UsageRecords.
|
|
1232
|
+
*/
|
|
1233
|
+
distinct?: Prisma.UsageRecordScalarFieldEnum | Prisma.UsageRecordScalarFieldEnum[]
|
|
1234
|
+
}
|
|
1235
|
+
|
|
1236
|
+
/**
|
|
1237
|
+
* UsageRecord findMany
|
|
1238
|
+
*/
|
|
1239
|
+
export type UsageRecordFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1240
|
+
/**
|
|
1241
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1242
|
+
*/
|
|
1243
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1244
|
+
/**
|
|
1245
|
+
* Omit specific fields from the UsageRecord
|
|
1246
|
+
*/
|
|
1247
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1248
|
+
/**
|
|
1249
|
+
* Choose, which related nodes to fetch as well
|
|
1250
|
+
*/
|
|
1251
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1252
|
+
/**
|
|
1253
|
+
* Filter, which UsageRecords to fetch.
|
|
1254
|
+
*/
|
|
1255
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1256
|
+
/**
|
|
1257
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1258
|
+
*
|
|
1259
|
+
* Determine the order of UsageRecords to fetch.
|
|
1260
|
+
*/
|
|
1261
|
+
orderBy?: Prisma.UsageRecordOrderByWithRelationInput | Prisma.UsageRecordOrderByWithRelationInput[]
|
|
1262
|
+
/**
|
|
1263
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1264
|
+
*
|
|
1265
|
+
* Sets the position for listing UsageRecords.
|
|
1266
|
+
*/
|
|
1267
|
+
cursor?: Prisma.UsageRecordWhereUniqueInput
|
|
1268
|
+
/**
|
|
1269
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1270
|
+
*
|
|
1271
|
+
* Take `±n` UsageRecords from the position of the cursor.
|
|
1272
|
+
*/
|
|
1273
|
+
take?: number
|
|
1274
|
+
/**
|
|
1275
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1276
|
+
*
|
|
1277
|
+
* Skip the first `n` UsageRecords.
|
|
1278
|
+
*/
|
|
1279
|
+
skip?: number
|
|
1280
|
+
/**
|
|
1281
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1282
|
+
*
|
|
1283
|
+
* Filter by unique combinations of UsageRecords.
|
|
1284
|
+
*/
|
|
1285
|
+
distinct?: Prisma.UsageRecordScalarFieldEnum | Prisma.UsageRecordScalarFieldEnum[]
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
/**
|
|
1289
|
+
* UsageRecord create
|
|
1290
|
+
*/
|
|
1291
|
+
export type UsageRecordCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1292
|
+
/**
|
|
1293
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1294
|
+
*/
|
|
1295
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1296
|
+
/**
|
|
1297
|
+
* Omit specific fields from the UsageRecord
|
|
1298
|
+
*/
|
|
1299
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1300
|
+
/**
|
|
1301
|
+
* Choose, which related nodes to fetch as well
|
|
1302
|
+
*/
|
|
1303
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1304
|
+
/**
|
|
1305
|
+
* The data needed to create a UsageRecord.
|
|
1306
|
+
*/
|
|
1307
|
+
data: Prisma.XOR<Prisma.UsageRecordCreateInput, Prisma.UsageRecordUncheckedCreateInput>
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* UsageRecord createMany
|
|
1312
|
+
*/
|
|
1313
|
+
export type UsageRecordCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1314
|
+
/**
|
|
1315
|
+
* The data used to create many UsageRecords.
|
|
1316
|
+
*/
|
|
1317
|
+
data: Prisma.UsageRecordCreateManyInput | Prisma.UsageRecordCreateManyInput[]
|
|
1318
|
+
}
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* UsageRecord createManyAndReturn
|
|
1322
|
+
*/
|
|
1323
|
+
export type UsageRecordCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1324
|
+
/**
|
|
1325
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1326
|
+
*/
|
|
1327
|
+
select?: Prisma.UsageRecordSelectCreateManyAndReturn<ExtArgs> | null
|
|
1328
|
+
/**
|
|
1329
|
+
* Omit specific fields from the UsageRecord
|
|
1330
|
+
*/
|
|
1331
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1332
|
+
/**
|
|
1333
|
+
* The data used to create many UsageRecords.
|
|
1334
|
+
*/
|
|
1335
|
+
data: Prisma.UsageRecordCreateManyInput | Prisma.UsageRecordCreateManyInput[]
|
|
1336
|
+
/**
|
|
1337
|
+
* Choose, which related nodes to fetch as well
|
|
1338
|
+
*/
|
|
1339
|
+
include?: Prisma.UsageRecordIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* UsageRecord update
|
|
1344
|
+
*/
|
|
1345
|
+
export type UsageRecordUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1348
|
+
*/
|
|
1349
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1350
|
+
/**
|
|
1351
|
+
* Omit specific fields from the UsageRecord
|
|
1352
|
+
*/
|
|
1353
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1354
|
+
/**
|
|
1355
|
+
* Choose, which related nodes to fetch as well
|
|
1356
|
+
*/
|
|
1357
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1358
|
+
/**
|
|
1359
|
+
* The data needed to update a UsageRecord.
|
|
1360
|
+
*/
|
|
1361
|
+
data: Prisma.XOR<Prisma.UsageRecordUpdateInput, Prisma.UsageRecordUncheckedUpdateInput>
|
|
1362
|
+
/**
|
|
1363
|
+
* Choose, which UsageRecord to update.
|
|
1364
|
+
*/
|
|
1365
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* UsageRecord updateMany
|
|
1370
|
+
*/
|
|
1371
|
+
export type UsageRecordUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1372
|
+
/**
|
|
1373
|
+
* The data used to update UsageRecords.
|
|
1374
|
+
*/
|
|
1375
|
+
data: Prisma.XOR<Prisma.UsageRecordUpdateManyMutationInput, Prisma.UsageRecordUncheckedUpdateManyInput>
|
|
1376
|
+
/**
|
|
1377
|
+
* Filter which UsageRecords to update
|
|
1378
|
+
*/
|
|
1379
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1380
|
+
/**
|
|
1381
|
+
* Limit how many UsageRecords to update.
|
|
1382
|
+
*/
|
|
1383
|
+
limit?: number
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* UsageRecord updateManyAndReturn
|
|
1388
|
+
*/
|
|
1389
|
+
export type UsageRecordUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1390
|
+
/**
|
|
1391
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1392
|
+
*/
|
|
1393
|
+
select?: Prisma.UsageRecordSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1394
|
+
/**
|
|
1395
|
+
* Omit specific fields from the UsageRecord
|
|
1396
|
+
*/
|
|
1397
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1398
|
+
/**
|
|
1399
|
+
* The data used to update UsageRecords.
|
|
1400
|
+
*/
|
|
1401
|
+
data: Prisma.XOR<Prisma.UsageRecordUpdateManyMutationInput, Prisma.UsageRecordUncheckedUpdateManyInput>
|
|
1402
|
+
/**
|
|
1403
|
+
* Filter which UsageRecords to update
|
|
1404
|
+
*/
|
|
1405
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1406
|
+
/**
|
|
1407
|
+
* Limit how many UsageRecords to update.
|
|
1408
|
+
*/
|
|
1409
|
+
limit?: number
|
|
1410
|
+
/**
|
|
1411
|
+
* Choose, which related nodes to fetch as well
|
|
1412
|
+
*/
|
|
1413
|
+
include?: Prisma.UsageRecordIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* UsageRecord upsert
|
|
1418
|
+
*/
|
|
1419
|
+
export type UsageRecordUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1420
|
+
/**
|
|
1421
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1422
|
+
*/
|
|
1423
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1424
|
+
/**
|
|
1425
|
+
* Omit specific fields from the UsageRecord
|
|
1426
|
+
*/
|
|
1427
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1428
|
+
/**
|
|
1429
|
+
* Choose, which related nodes to fetch as well
|
|
1430
|
+
*/
|
|
1431
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1432
|
+
/**
|
|
1433
|
+
* The filter to search for the UsageRecord to update in case it exists.
|
|
1434
|
+
*/
|
|
1435
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
1436
|
+
/**
|
|
1437
|
+
* In case the UsageRecord found by the `where` argument doesn't exist, create a new UsageRecord with this data.
|
|
1438
|
+
*/
|
|
1439
|
+
create: Prisma.XOR<Prisma.UsageRecordCreateInput, Prisma.UsageRecordUncheckedCreateInput>
|
|
1440
|
+
/**
|
|
1441
|
+
* In case the UsageRecord was found with the provided `where` argument, update it with this data.
|
|
1442
|
+
*/
|
|
1443
|
+
update: Prisma.XOR<Prisma.UsageRecordUpdateInput, Prisma.UsageRecordUncheckedUpdateInput>
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/**
|
|
1447
|
+
* UsageRecord delete
|
|
1448
|
+
*/
|
|
1449
|
+
export type UsageRecordDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1450
|
+
/**
|
|
1451
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1452
|
+
*/
|
|
1453
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1454
|
+
/**
|
|
1455
|
+
* Omit specific fields from the UsageRecord
|
|
1456
|
+
*/
|
|
1457
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1458
|
+
/**
|
|
1459
|
+
* Choose, which related nodes to fetch as well
|
|
1460
|
+
*/
|
|
1461
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1462
|
+
/**
|
|
1463
|
+
* Filter which UsageRecord to delete.
|
|
1464
|
+
*/
|
|
1465
|
+
where: Prisma.UsageRecordWhereUniqueInput
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* UsageRecord deleteMany
|
|
1470
|
+
*/
|
|
1471
|
+
export type UsageRecordDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1472
|
+
/**
|
|
1473
|
+
* Filter which UsageRecords to delete
|
|
1474
|
+
*/
|
|
1475
|
+
where?: Prisma.UsageRecordWhereInput
|
|
1476
|
+
/**
|
|
1477
|
+
* Limit how many UsageRecords to delete.
|
|
1478
|
+
*/
|
|
1479
|
+
limit?: number
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* UsageRecord without action
|
|
1484
|
+
*/
|
|
1485
|
+
export type UsageRecordDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1486
|
+
/**
|
|
1487
|
+
* Select specific fields to fetch from the UsageRecord
|
|
1488
|
+
*/
|
|
1489
|
+
select?: Prisma.UsageRecordSelect<ExtArgs> | null
|
|
1490
|
+
/**
|
|
1491
|
+
* Omit specific fields from the UsageRecord
|
|
1492
|
+
*/
|
|
1493
|
+
omit?: Prisma.UsageRecordOmit<ExtArgs> | null
|
|
1494
|
+
/**
|
|
1495
|
+
* Choose, which related nodes to fetch as well
|
|
1496
|
+
*/
|
|
1497
|
+
include?: Prisma.UsageRecordInclude<ExtArgs> | null
|
|
1498
|
+
}
|