@allbluecn/database 0.4.0 → 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.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1137 @@
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 `SequenceCounter` 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 SequenceCounter
17
+ *
18
+ */
19
+ export type SequenceCounterModel = runtime.Types.Result.DefaultSelection<Prisma.$SequenceCounterPayload>
20
+
21
+ export type AggregateSequenceCounter = {
22
+ _count: SequenceCounterCountAggregateOutputType | null
23
+ _avg: SequenceCounterAvgAggregateOutputType | null
24
+ _sum: SequenceCounterSumAggregateOutputType | null
25
+ _min: SequenceCounterMinAggregateOutputType | null
26
+ _max: SequenceCounterMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SequenceCounterAvgAggregateOutputType = {
30
+ seq: number | null
31
+ }
32
+
33
+ export type SequenceCounterSumAggregateOutputType = {
34
+ seq: number | null
35
+ }
36
+
37
+ export type SequenceCounterMinAggregateOutputType = {
38
+ id: string | null
39
+ scope: string | null
40
+ seq: number | null
41
+ }
42
+
43
+ export type SequenceCounterMaxAggregateOutputType = {
44
+ id: string | null
45
+ scope: string | null
46
+ seq: number | null
47
+ }
48
+
49
+ export type SequenceCounterCountAggregateOutputType = {
50
+ id: number
51
+ scope: number
52
+ seq: number
53
+ _all: number
54
+ }
55
+
56
+
57
+ export type SequenceCounterAvgAggregateInputType = {
58
+ seq?: true
59
+ }
60
+
61
+ export type SequenceCounterSumAggregateInputType = {
62
+ seq?: true
63
+ }
64
+
65
+ export type SequenceCounterMinAggregateInputType = {
66
+ id?: true
67
+ scope?: true
68
+ seq?: true
69
+ }
70
+
71
+ export type SequenceCounterMaxAggregateInputType = {
72
+ id?: true
73
+ scope?: true
74
+ seq?: true
75
+ }
76
+
77
+ export type SequenceCounterCountAggregateInputType = {
78
+ id?: true
79
+ scope?: true
80
+ seq?: true
81
+ _all?: true
82
+ }
83
+
84
+ export type SequenceCounterAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
85
+ /**
86
+ * Filter which SequenceCounter to aggregate.
87
+ */
88
+ where?: Prisma.SequenceCounterWhereInput
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
91
+ *
92
+ * Determine the order of SequenceCounters to fetch.
93
+ */
94
+ orderBy?: Prisma.SequenceCounterOrderByWithRelationInput | Prisma.SequenceCounterOrderByWithRelationInput[]
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
97
+ *
98
+ * Sets the start position
99
+ */
100
+ cursor?: Prisma.SequenceCounterWhereUniqueInput
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
103
+ *
104
+ * Take `±n` SequenceCounters from the position of the cursor.
105
+ */
106
+ take?: number
107
+ /**
108
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
109
+ *
110
+ * Skip the first `n` SequenceCounters.
111
+ */
112
+ skip?: number
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
115
+ *
116
+ * Count returned SequenceCounters
117
+ **/
118
+ _count?: true | SequenceCounterCountAggregateInputType
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
121
+ *
122
+ * Select which fields to average
123
+ **/
124
+ _avg?: SequenceCounterAvgAggregateInputType
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
127
+ *
128
+ * Select which fields to sum
129
+ **/
130
+ _sum?: SequenceCounterSumAggregateInputType
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
133
+ *
134
+ * Select which fields to find the minimum value
135
+ **/
136
+ _min?: SequenceCounterMinAggregateInputType
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Select which fields to find the maximum value
141
+ **/
142
+ _max?: SequenceCounterMaxAggregateInputType
143
+ }
144
+
145
+ export type GetSequenceCounterAggregateType<T extends SequenceCounterAggregateArgs> = {
146
+ [P in keyof T & keyof AggregateSequenceCounter]: P extends '_count' | 'count'
147
+ ? T[P] extends true
148
+ ? number
149
+ : Prisma.GetScalarType<T[P], AggregateSequenceCounter[P]>
150
+ : Prisma.GetScalarType<T[P], AggregateSequenceCounter[P]>
151
+ }
152
+
153
+
154
+
155
+
156
+ export type SequenceCounterGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
157
+ where?: Prisma.SequenceCounterWhereInput
158
+ orderBy?: Prisma.SequenceCounterOrderByWithAggregationInput | Prisma.SequenceCounterOrderByWithAggregationInput[]
159
+ by: Prisma.SequenceCounterScalarFieldEnum[] | Prisma.SequenceCounterScalarFieldEnum
160
+ having?: Prisma.SequenceCounterScalarWhereWithAggregatesInput
161
+ take?: number
162
+ skip?: number
163
+ _count?: SequenceCounterCountAggregateInputType | true
164
+ _avg?: SequenceCounterAvgAggregateInputType
165
+ _sum?: SequenceCounterSumAggregateInputType
166
+ _min?: SequenceCounterMinAggregateInputType
167
+ _max?: SequenceCounterMaxAggregateInputType
168
+ }
169
+
170
+ export type SequenceCounterGroupByOutputType = {
171
+ id: string
172
+ scope: string
173
+ seq: number
174
+ _count: SequenceCounterCountAggregateOutputType | null
175
+ _avg: SequenceCounterAvgAggregateOutputType | null
176
+ _sum: SequenceCounterSumAggregateOutputType | null
177
+ _min: SequenceCounterMinAggregateOutputType | null
178
+ _max: SequenceCounterMaxAggregateOutputType | null
179
+ }
180
+
181
+ export type GetSequenceCounterGroupByPayload<T extends SequenceCounterGroupByArgs> = Prisma.PrismaPromise<
182
+ Array<
183
+ Prisma.PickEnumerable<SequenceCounterGroupByOutputType, T['by']> &
184
+ {
185
+ [P in ((keyof T) & (keyof SequenceCounterGroupByOutputType))]: P extends '_count'
186
+ ? T[P] extends boolean
187
+ ? number
188
+ : Prisma.GetScalarType<T[P], SequenceCounterGroupByOutputType[P]>
189
+ : Prisma.GetScalarType<T[P], SequenceCounterGroupByOutputType[P]>
190
+ }
191
+ >
192
+ >
193
+
194
+
195
+
196
+ export type SequenceCounterWhereInput = {
197
+ AND?: Prisma.SequenceCounterWhereInput | Prisma.SequenceCounterWhereInput[]
198
+ OR?: Prisma.SequenceCounterWhereInput[]
199
+ NOT?: Prisma.SequenceCounterWhereInput | Prisma.SequenceCounterWhereInput[]
200
+ id?: Prisma.StringFilter<"SequenceCounter"> | string
201
+ scope?: Prisma.StringFilter<"SequenceCounter"> | string
202
+ seq?: Prisma.IntFilter<"SequenceCounter"> | number
203
+ }
204
+
205
+ export type SequenceCounterOrderByWithRelationInput = {
206
+ id?: Prisma.SortOrder
207
+ scope?: Prisma.SortOrder
208
+ seq?: Prisma.SortOrder
209
+ }
210
+
211
+ export type SequenceCounterWhereUniqueInput = Prisma.AtLeast<{
212
+ id?: string
213
+ scope?: string
214
+ AND?: Prisma.SequenceCounterWhereInput | Prisma.SequenceCounterWhereInput[]
215
+ OR?: Prisma.SequenceCounterWhereInput[]
216
+ NOT?: Prisma.SequenceCounterWhereInput | Prisma.SequenceCounterWhereInput[]
217
+ seq?: Prisma.IntFilter<"SequenceCounter"> | number
218
+ }, "id" | "scope">
219
+
220
+ export type SequenceCounterOrderByWithAggregationInput = {
221
+ id?: Prisma.SortOrder
222
+ scope?: Prisma.SortOrder
223
+ seq?: Prisma.SortOrder
224
+ _count?: Prisma.SequenceCounterCountOrderByAggregateInput
225
+ _avg?: Prisma.SequenceCounterAvgOrderByAggregateInput
226
+ _max?: Prisma.SequenceCounterMaxOrderByAggregateInput
227
+ _min?: Prisma.SequenceCounterMinOrderByAggregateInput
228
+ _sum?: Prisma.SequenceCounterSumOrderByAggregateInput
229
+ }
230
+
231
+ export type SequenceCounterScalarWhereWithAggregatesInput = {
232
+ AND?: Prisma.SequenceCounterScalarWhereWithAggregatesInput | Prisma.SequenceCounterScalarWhereWithAggregatesInput[]
233
+ OR?: Prisma.SequenceCounterScalarWhereWithAggregatesInput[]
234
+ NOT?: Prisma.SequenceCounterScalarWhereWithAggregatesInput | Prisma.SequenceCounterScalarWhereWithAggregatesInput[]
235
+ id?: Prisma.StringWithAggregatesFilter<"SequenceCounter"> | string
236
+ scope?: Prisma.StringWithAggregatesFilter<"SequenceCounter"> | string
237
+ seq?: Prisma.IntWithAggregatesFilter<"SequenceCounter"> | number
238
+ }
239
+
240
+ export type SequenceCounterCreateInput = {
241
+ id?: string
242
+ scope: string
243
+ seq?: number
244
+ }
245
+
246
+ export type SequenceCounterUncheckedCreateInput = {
247
+ id?: string
248
+ scope: string
249
+ seq?: number
250
+ }
251
+
252
+ export type SequenceCounterUpdateInput = {
253
+ id?: Prisma.StringFieldUpdateOperationsInput | string
254
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
255
+ seq?: Prisma.IntFieldUpdateOperationsInput | number
256
+ }
257
+
258
+ export type SequenceCounterUncheckedUpdateInput = {
259
+ id?: Prisma.StringFieldUpdateOperationsInput | string
260
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
261
+ seq?: Prisma.IntFieldUpdateOperationsInput | number
262
+ }
263
+
264
+ export type SequenceCounterCreateManyInput = {
265
+ id?: string
266
+ scope: string
267
+ seq?: number
268
+ }
269
+
270
+ export type SequenceCounterUpdateManyMutationInput = {
271
+ id?: Prisma.StringFieldUpdateOperationsInput | string
272
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
273
+ seq?: Prisma.IntFieldUpdateOperationsInput | number
274
+ }
275
+
276
+ export type SequenceCounterUncheckedUpdateManyInput = {
277
+ id?: Prisma.StringFieldUpdateOperationsInput | string
278
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
279
+ seq?: Prisma.IntFieldUpdateOperationsInput | number
280
+ }
281
+
282
+ export type SequenceCounterCountOrderByAggregateInput = {
283
+ id?: Prisma.SortOrder
284
+ scope?: Prisma.SortOrder
285
+ seq?: Prisma.SortOrder
286
+ }
287
+
288
+ export type SequenceCounterAvgOrderByAggregateInput = {
289
+ seq?: Prisma.SortOrder
290
+ }
291
+
292
+ export type SequenceCounterMaxOrderByAggregateInput = {
293
+ id?: Prisma.SortOrder
294
+ scope?: Prisma.SortOrder
295
+ seq?: Prisma.SortOrder
296
+ }
297
+
298
+ export type SequenceCounterMinOrderByAggregateInput = {
299
+ id?: Prisma.SortOrder
300
+ scope?: Prisma.SortOrder
301
+ seq?: Prisma.SortOrder
302
+ }
303
+
304
+ export type SequenceCounterSumOrderByAggregateInput = {
305
+ seq?: Prisma.SortOrder
306
+ }
307
+
308
+
309
+
310
+ export type SequenceCounterSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
311
+ id?: boolean
312
+ scope?: boolean
313
+ seq?: boolean
314
+ }, ExtArgs["result"]["sequenceCounter"]>
315
+
316
+ export type SequenceCounterSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
317
+ id?: boolean
318
+ scope?: boolean
319
+ seq?: boolean
320
+ }, ExtArgs["result"]["sequenceCounter"]>
321
+
322
+ export type SequenceCounterSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
323
+ id?: boolean
324
+ scope?: boolean
325
+ seq?: boolean
326
+ }, ExtArgs["result"]["sequenceCounter"]>
327
+
328
+ export type SequenceCounterSelectScalar = {
329
+ id?: boolean
330
+ scope?: boolean
331
+ seq?: boolean
332
+ }
333
+
334
+ export type SequenceCounterOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "scope" | "seq", ExtArgs["result"]["sequenceCounter"]>
335
+
336
+ export type $SequenceCounterPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
337
+ name: "SequenceCounter"
338
+ objects: {}
339
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
340
+ id: string
341
+ scope: string
342
+ seq: number
343
+ }, ExtArgs["result"]["sequenceCounter"]>
344
+ composites: {}
345
+ }
346
+
347
+ export type SequenceCounterGetPayload<S extends boolean | null | undefined | SequenceCounterDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload, S>
348
+
349
+ export type SequenceCounterCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
350
+ Omit<SequenceCounterFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
351
+ select?: SequenceCounterCountAggregateInputType | true
352
+ }
353
+
354
+ export interface SequenceCounterDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
355
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SequenceCounter'], meta: { name: 'SequenceCounter' } }
356
+ /**
357
+ * Find zero or one SequenceCounter that matches the filter.
358
+ * @param {SequenceCounterFindUniqueArgs} args - Arguments to find a SequenceCounter
359
+ * @example
360
+ * // Get one SequenceCounter
361
+ * const sequenceCounter = await prisma.sequenceCounter.findUnique({
362
+ * where: {
363
+ * // ... provide filter here
364
+ * }
365
+ * })
366
+ */
367
+ findUnique<T extends SequenceCounterFindUniqueArgs>(args: Prisma.SelectSubset<T, SequenceCounterFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
368
+
369
+ /**
370
+ * Find one SequenceCounter that matches the filter or throw an error with `error.code='P2025'`
371
+ * if no matches were found.
372
+ * @param {SequenceCounterFindUniqueOrThrowArgs} args - Arguments to find a SequenceCounter
373
+ * @example
374
+ * // Get one SequenceCounter
375
+ * const sequenceCounter = await prisma.sequenceCounter.findUniqueOrThrow({
376
+ * where: {
377
+ * // ... provide filter here
378
+ * }
379
+ * })
380
+ */
381
+ findUniqueOrThrow<T extends SequenceCounterFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SequenceCounterFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
382
+
383
+ /**
384
+ * Find the first SequenceCounter that matches the filter.
385
+ * Note, that providing `undefined` is treated as the value not being there.
386
+ * Read more here: https://pris.ly/d/null-undefined
387
+ * @param {SequenceCounterFindFirstArgs} args - Arguments to find a SequenceCounter
388
+ * @example
389
+ * // Get one SequenceCounter
390
+ * const sequenceCounter = await prisma.sequenceCounter.findFirst({
391
+ * where: {
392
+ * // ... provide filter here
393
+ * }
394
+ * })
395
+ */
396
+ findFirst<T extends SequenceCounterFindFirstArgs>(args?: Prisma.SelectSubset<T, SequenceCounterFindFirstArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
397
+
398
+ /**
399
+ * Find the first SequenceCounter that matches the filter or
400
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
401
+ * Note, that providing `undefined` is treated as the value not being there.
402
+ * Read more here: https://pris.ly/d/null-undefined
403
+ * @param {SequenceCounterFindFirstOrThrowArgs} args - Arguments to find a SequenceCounter
404
+ * @example
405
+ * // Get one SequenceCounter
406
+ * const sequenceCounter = await prisma.sequenceCounter.findFirstOrThrow({
407
+ * where: {
408
+ * // ... provide filter here
409
+ * }
410
+ * })
411
+ */
412
+ findFirstOrThrow<T extends SequenceCounterFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SequenceCounterFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
413
+
414
+ /**
415
+ * Find zero or more SequenceCounters that matches the filter.
416
+ * Note, that providing `undefined` is treated as the value not being there.
417
+ * Read more here: https://pris.ly/d/null-undefined
418
+ * @param {SequenceCounterFindManyArgs} args - Arguments to filter and select certain fields only.
419
+ * @example
420
+ * // Get all SequenceCounters
421
+ * const sequenceCounters = await prisma.sequenceCounter.findMany()
422
+ *
423
+ * // Get first 10 SequenceCounters
424
+ * const sequenceCounters = await prisma.sequenceCounter.findMany({ take: 10 })
425
+ *
426
+ * // Only select the `id`
427
+ * const sequenceCounterWithIdOnly = await prisma.sequenceCounter.findMany({ select: { id: true } })
428
+ *
429
+ */
430
+ findMany<T extends SequenceCounterFindManyArgs>(args?: Prisma.SelectSubset<T, SequenceCounterFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
431
+
432
+ /**
433
+ * Create a SequenceCounter.
434
+ * @param {SequenceCounterCreateArgs} args - Arguments to create a SequenceCounter.
435
+ * @example
436
+ * // Create one SequenceCounter
437
+ * const SequenceCounter = await prisma.sequenceCounter.create({
438
+ * data: {
439
+ * // ... data to create a SequenceCounter
440
+ * }
441
+ * })
442
+ *
443
+ */
444
+ create<T extends SequenceCounterCreateArgs>(args: Prisma.SelectSubset<T, SequenceCounterCreateArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
445
+
446
+ /**
447
+ * Create many SequenceCounters.
448
+ * @param {SequenceCounterCreateManyArgs} args - Arguments to create many SequenceCounters.
449
+ * @example
450
+ * // Create many SequenceCounters
451
+ * const sequenceCounter = await prisma.sequenceCounter.createMany({
452
+ * data: [
453
+ * // ... provide data here
454
+ * ]
455
+ * })
456
+ *
457
+ */
458
+ createMany<T extends SequenceCounterCreateManyArgs>(args?: Prisma.SelectSubset<T, SequenceCounterCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
459
+
460
+ /**
461
+ * Create many SequenceCounters and returns the data saved in the database.
462
+ * @param {SequenceCounterCreateManyAndReturnArgs} args - Arguments to create many SequenceCounters.
463
+ * @example
464
+ * // Create many SequenceCounters
465
+ * const sequenceCounter = await prisma.sequenceCounter.createManyAndReturn({
466
+ * data: [
467
+ * // ... provide data here
468
+ * ]
469
+ * })
470
+ *
471
+ * // Create many SequenceCounters and only return the `id`
472
+ * const sequenceCounterWithIdOnly = await prisma.sequenceCounter.createManyAndReturn({
473
+ * select: { id: true },
474
+ * data: [
475
+ * // ... provide data here
476
+ * ]
477
+ * })
478
+ * Note, that providing `undefined` is treated as the value not being there.
479
+ * Read more here: https://pris.ly/d/null-undefined
480
+ *
481
+ */
482
+ createManyAndReturn<T extends SequenceCounterCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SequenceCounterCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
483
+
484
+ /**
485
+ * Delete a SequenceCounter.
486
+ * @param {SequenceCounterDeleteArgs} args - Arguments to delete one SequenceCounter.
487
+ * @example
488
+ * // Delete one SequenceCounter
489
+ * const SequenceCounter = await prisma.sequenceCounter.delete({
490
+ * where: {
491
+ * // ... filter to delete one SequenceCounter
492
+ * }
493
+ * })
494
+ *
495
+ */
496
+ delete<T extends SequenceCounterDeleteArgs>(args: Prisma.SelectSubset<T, SequenceCounterDeleteArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
497
+
498
+ /**
499
+ * Update one SequenceCounter.
500
+ * @param {SequenceCounterUpdateArgs} args - Arguments to update one SequenceCounter.
501
+ * @example
502
+ * // Update one SequenceCounter
503
+ * const sequenceCounter = await prisma.sequenceCounter.update({
504
+ * where: {
505
+ * // ... provide filter here
506
+ * },
507
+ * data: {
508
+ * // ... provide data here
509
+ * }
510
+ * })
511
+ *
512
+ */
513
+ update<T extends SequenceCounterUpdateArgs>(args: Prisma.SelectSubset<T, SequenceCounterUpdateArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
514
+
515
+ /**
516
+ * Delete zero or more SequenceCounters.
517
+ * @param {SequenceCounterDeleteManyArgs} args - Arguments to filter SequenceCounters to delete.
518
+ * @example
519
+ * // Delete a few SequenceCounters
520
+ * const { count } = await prisma.sequenceCounter.deleteMany({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * }
524
+ * })
525
+ *
526
+ */
527
+ deleteMany<T extends SequenceCounterDeleteManyArgs>(args?: Prisma.SelectSubset<T, SequenceCounterDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
528
+
529
+ /**
530
+ * Update zero or more SequenceCounters.
531
+ * Note, that providing `undefined` is treated as the value not being there.
532
+ * Read more here: https://pris.ly/d/null-undefined
533
+ * @param {SequenceCounterUpdateManyArgs} args - Arguments to update one or more rows.
534
+ * @example
535
+ * // Update many SequenceCounters
536
+ * const sequenceCounter = await prisma.sequenceCounter.updateMany({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * },
540
+ * data: {
541
+ * // ... provide data here
542
+ * }
543
+ * })
544
+ *
545
+ */
546
+ updateMany<T extends SequenceCounterUpdateManyArgs>(args: Prisma.SelectSubset<T, SequenceCounterUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
547
+
548
+ /**
549
+ * Update zero or more SequenceCounters and returns the data updated in the database.
550
+ * @param {SequenceCounterUpdateManyAndReturnArgs} args - Arguments to update many SequenceCounters.
551
+ * @example
552
+ * // Update many SequenceCounters
553
+ * const sequenceCounter = await prisma.sequenceCounter.updateManyAndReturn({
554
+ * where: {
555
+ * // ... provide filter here
556
+ * },
557
+ * data: [
558
+ * // ... provide data here
559
+ * ]
560
+ * })
561
+ *
562
+ * // Update zero or more SequenceCounters and only return the `id`
563
+ * const sequenceCounterWithIdOnly = await prisma.sequenceCounter.updateManyAndReturn({
564
+ * select: { id: true },
565
+ * where: {
566
+ * // ... provide filter here
567
+ * },
568
+ * data: [
569
+ * // ... provide data here
570
+ * ]
571
+ * })
572
+ * Note, that providing `undefined` is treated as the value not being there.
573
+ * Read more here: https://pris.ly/d/null-undefined
574
+ *
575
+ */
576
+ updateManyAndReturn<T extends SequenceCounterUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SequenceCounterUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
577
+
578
+ /**
579
+ * Create or update one SequenceCounter.
580
+ * @param {SequenceCounterUpsertArgs} args - Arguments to update or create a SequenceCounter.
581
+ * @example
582
+ * // Update or create a SequenceCounter
583
+ * const sequenceCounter = await prisma.sequenceCounter.upsert({
584
+ * create: {
585
+ * // ... data to create a SequenceCounter
586
+ * },
587
+ * update: {
588
+ * // ... in case it already exists, update
589
+ * },
590
+ * where: {
591
+ * // ... the filter for the SequenceCounter we want to update
592
+ * }
593
+ * })
594
+ */
595
+ upsert<T extends SequenceCounterUpsertArgs>(args: Prisma.SelectSubset<T, SequenceCounterUpsertArgs<ExtArgs>>): Prisma.Prisma__SequenceCounterClient<runtime.Types.Result.GetResult<Prisma.$SequenceCounterPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
596
+
597
+
598
+ /**
599
+ * Count the number of SequenceCounters.
600
+ * Note, that providing `undefined` is treated as the value not being there.
601
+ * Read more here: https://pris.ly/d/null-undefined
602
+ * @param {SequenceCounterCountArgs} args - Arguments to filter SequenceCounters to count.
603
+ * @example
604
+ * // Count the number of SequenceCounters
605
+ * const count = await prisma.sequenceCounter.count({
606
+ * where: {
607
+ * // ... the filter for the SequenceCounters we want to count
608
+ * }
609
+ * })
610
+ **/
611
+ count<T extends SequenceCounterCountArgs>(
612
+ args?: Prisma.Subset<T, SequenceCounterCountArgs>,
613
+ ): Prisma.PrismaPromise<
614
+ T extends runtime.Types.Utils.Record<'select', any>
615
+ ? T['select'] extends true
616
+ ? number
617
+ : Prisma.GetScalarType<T['select'], SequenceCounterCountAggregateOutputType>
618
+ : number
619
+ >
620
+
621
+ /**
622
+ * Allows you to perform aggregations operations on a SequenceCounter.
623
+ * Note, that providing `undefined` is treated as the value not being there.
624
+ * Read more here: https://pris.ly/d/null-undefined
625
+ * @param {SequenceCounterAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
626
+ * @example
627
+ * // Ordered by age ascending
628
+ * // Where email contains prisma.io
629
+ * // Limited to the 10 users
630
+ * const aggregations = await prisma.user.aggregate({
631
+ * _avg: {
632
+ * age: true,
633
+ * },
634
+ * where: {
635
+ * email: {
636
+ * contains: "prisma.io",
637
+ * },
638
+ * },
639
+ * orderBy: {
640
+ * age: "asc",
641
+ * },
642
+ * take: 10,
643
+ * })
644
+ **/
645
+ aggregate<T extends SequenceCounterAggregateArgs>(args: Prisma.Subset<T, SequenceCounterAggregateArgs>): Prisma.PrismaPromise<GetSequenceCounterAggregateType<T>>
646
+
647
+ /**
648
+ * Group by SequenceCounter.
649
+ * Note, that providing `undefined` is treated as the value not being there.
650
+ * Read more here: https://pris.ly/d/null-undefined
651
+ * @param {SequenceCounterGroupByArgs} args - Group by arguments.
652
+ * @example
653
+ * // Group by city, order by createdAt, get count
654
+ * const result = await prisma.user.groupBy({
655
+ * by: ['city', 'createdAt'],
656
+ * orderBy: {
657
+ * createdAt: true
658
+ * },
659
+ * _count: {
660
+ * _all: true
661
+ * },
662
+ * })
663
+ *
664
+ **/
665
+ groupBy<
666
+ T extends SequenceCounterGroupByArgs,
667
+ HasSelectOrTake extends Prisma.Or<
668
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
669
+ Prisma.Extends<'take', Prisma.Keys<T>>
670
+ >,
671
+ OrderByArg extends Prisma.True extends HasSelectOrTake
672
+ ? { orderBy: SequenceCounterGroupByArgs['orderBy'] }
673
+ : { orderBy?: SequenceCounterGroupByArgs['orderBy'] },
674
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
675
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
676
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
677
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
678
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
679
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
680
+ InputErrors extends ByEmpty extends Prisma.True
681
+ ? `Error: "by" must not be empty.`
682
+ : HavingValid extends Prisma.False
683
+ ? {
684
+ [P in HavingFields]: P extends ByFields
685
+ ? never
686
+ : P extends string
687
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
688
+ : [
689
+ Error,
690
+ 'Field ',
691
+ P,
692
+ ` in "having" needs to be provided in "by"`,
693
+ ]
694
+ }[HavingFields]
695
+ : 'take' extends Prisma.Keys<T>
696
+ ? 'orderBy' extends Prisma.Keys<T>
697
+ ? ByValid extends Prisma.True
698
+ ? {}
699
+ : {
700
+ [P in OrderFields]: P extends ByFields
701
+ ? never
702
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
703
+ }[OrderFields]
704
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
705
+ : 'skip' extends Prisma.Keys<T>
706
+ ? 'orderBy' extends Prisma.Keys<T>
707
+ ? ByValid extends Prisma.True
708
+ ? {}
709
+ : {
710
+ [P in OrderFields]: P extends ByFields
711
+ ? never
712
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
713
+ }[OrderFields]
714
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
715
+ : ByValid extends Prisma.True
716
+ ? {}
717
+ : {
718
+ [P in OrderFields]: P extends ByFields
719
+ ? never
720
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
721
+ }[OrderFields]
722
+ >(args: Prisma.SubsetIntersection<T, SequenceCounterGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSequenceCounterGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
723
+ /**
724
+ * Fields of the SequenceCounter model
725
+ */
726
+ readonly fields: SequenceCounterFieldRefs;
727
+ }
728
+
729
+ /**
730
+ * The delegate class that acts as a "Promise-like" for SequenceCounter.
731
+ * Why is this prefixed with `Prisma__`?
732
+ * Because we want to prevent naming conflicts as mentioned in
733
+ * https://github.com/prisma/prisma-client-js/issues/707
734
+ */
735
+ export interface Prisma__SequenceCounterClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
736
+ readonly [Symbol.toStringTag]: "PrismaPromise"
737
+ /**
738
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
739
+ * @param onfulfilled The callback to execute when the Promise is resolved.
740
+ * @param onrejected The callback to execute when the Promise is rejected.
741
+ * @returns A Promise for the completion of which ever callback is executed.
742
+ */
743
+ 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>
744
+ /**
745
+ * Attaches a callback for only the rejection of the Promise.
746
+ * @param onrejected The callback to execute when the Promise is rejected.
747
+ * @returns A Promise for the completion of the callback.
748
+ */
749
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
750
+ /**
751
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
752
+ * resolved value cannot be modified from the callback.
753
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
754
+ * @returns A Promise for the completion of the callback.
755
+ */
756
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
757
+ }
758
+
759
+
760
+
761
+
762
+ /**
763
+ * Fields of the SequenceCounter model
764
+ */
765
+ export interface SequenceCounterFieldRefs {
766
+ readonly id: Prisma.FieldRef<"SequenceCounter", 'String'>
767
+ readonly scope: Prisma.FieldRef<"SequenceCounter", 'String'>
768
+ readonly seq: Prisma.FieldRef<"SequenceCounter", 'Int'>
769
+ }
770
+
771
+
772
+ // Custom InputTypes
773
+ /**
774
+ * SequenceCounter findUnique
775
+ */
776
+ export type SequenceCounterFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
777
+ /**
778
+ * Select specific fields to fetch from the SequenceCounter
779
+ */
780
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
781
+ /**
782
+ * Omit specific fields from the SequenceCounter
783
+ */
784
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
785
+ /**
786
+ * Filter, which SequenceCounter to fetch.
787
+ */
788
+ where: Prisma.SequenceCounterWhereUniqueInput
789
+ }
790
+
791
+ /**
792
+ * SequenceCounter findUniqueOrThrow
793
+ */
794
+ export type SequenceCounterFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
795
+ /**
796
+ * Select specific fields to fetch from the SequenceCounter
797
+ */
798
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
799
+ /**
800
+ * Omit specific fields from the SequenceCounter
801
+ */
802
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
803
+ /**
804
+ * Filter, which SequenceCounter to fetch.
805
+ */
806
+ where: Prisma.SequenceCounterWhereUniqueInput
807
+ }
808
+
809
+ /**
810
+ * SequenceCounter findFirst
811
+ */
812
+ export type SequenceCounterFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
813
+ /**
814
+ * Select specific fields to fetch from the SequenceCounter
815
+ */
816
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
817
+ /**
818
+ * Omit specific fields from the SequenceCounter
819
+ */
820
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
821
+ /**
822
+ * Filter, which SequenceCounter to fetch.
823
+ */
824
+ where?: Prisma.SequenceCounterWhereInput
825
+ /**
826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
827
+ *
828
+ * Determine the order of SequenceCounters to fetch.
829
+ */
830
+ orderBy?: Prisma.SequenceCounterOrderByWithRelationInput | Prisma.SequenceCounterOrderByWithRelationInput[]
831
+ /**
832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
833
+ *
834
+ * Sets the position for searching for SequenceCounters.
835
+ */
836
+ cursor?: Prisma.SequenceCounterWhereUniqueInput
837
+ /**
838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
839
+ *
840
+ * Take `±n` SequenceCounters from the position of the cursor.
841
+ */
842
+ take?: number
843
+ /**
844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
845
+ *
846
+ * Skip the first `n` SequenceCounters.
847
+ */
848
+ skip?: number
849
+ /**
850
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
851
+ *
852
+ * Filter by unique combinations of SequenceCounters.
853
+ */
854
+ distinct?: Prisma.SequenceCounterScalarFieldEnum | Prisma.SequenceCounterScalarFieldEnum[]
855
+ }
856
+
857
+ /**
858
+ * SequenceCounter findFirstOrThrow
859
+ */
860
+ export type SequenceCounterFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
861
+ /**
862
+ * Select specific fields to fetch from the SequenceCounter
863
+ */
864
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
865
+ /**
866
+ * Omit specific fields from the SequenceCounter
867
+ */
868
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
869
+ /**
870
+ * Filter, which SequenceCounter to fetch.
871
+ */
872
+ where?: Prisma.SequenceCounterWhereInput
873
+ /**
874
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
875
+ *
876
+ * Determine the order of SequenceCounters to fetch.
877
+ */
878
+ orderBy?: Prisma.SequenceCounterOrderByWithRelationInput | Prisma.SequenceCounterOrderByWithRelationInput[]
879
+ /**
880
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
881
+ *
882
+ * Sets the position for searching for SequenceCounters.
883
+ */
884
+ cursor?: Prisma.SequenceCounterWhereUniqueInput
885
+ /**
886
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
887
+ *
888
+ * Take `±n` SequenceCounters from the position of the cursor.
889
+ */
890
+ take?: number
891
+ /**
892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
893
+ *
894
+ * Skip the first `n` SequenceCounters.
895
+ */
896
+ skip?: number
897
+ /**
898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
899
+ *
900
+ * Filter by unique combinations of SequenceCounters.
901
+ */
902
+ distinct?: Prisma.SequenceCounterScalarFieldEnum | Prisma.SequenceCounterScalarFieldEnum[]
903
+ }
904
+
905
+ /**
906
+ * SequenceCounter findMany
907
+ */
908
+ export type SequenceCounterFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
909
+ /**
910
+ * Select specific fields to fetch from the SequenceCounter
911
+ */
912
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
913
+ /**
914
+ * Omit specific fields from the SequenceCounter
915
+ */
916
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
917
+ /**
918
+ * Filter, which SequenceCounters to fetch.
919
+ */
920
+ where?: Prisma.SequenceCounterWhereInput
921
+ /**
922
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
923
+ *
924
+ * Determine the order of SequenceCounters to fetch.
925
+ */
926
+ orderBy?: Prisma.SequenceCounterOrderByWithRelationInput | Prisma.SequenceCounterOrderByWithRelationInput[]
927
+ /**
928
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
929
+ *
930
+ * Sets the position for listing SequenceCounters.
931
+ */
932
+ cursor?: Prisma.SequenceCounterWhereUniqueInput
933
+ /**
934
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
935
+ *
936
+ * Take `±n` SequenceCounters from the position of the cursor.
937
+ */
938
+ take?: number
939
+ /**
940
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
941
+ *
942
+ * Skip the first `n` SequenceCounters.
943
+ */
944
+ skip?: number
945
+ /**
946
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
947
+ *
948
+ * Filter by unique combinations of SequenceCounters.
949
+ */
950
+ distinct?: Prisma.SequenceCounterScalarFieldEnum | Prisma.SequenceCounterScalarFieldEnum[]
951
+ }
952
+
953
+ /**
954
+ * SequenceCounter create
955
+ */
956
+ export type SequenceCounterCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
957
+ /**
958
+ * Select specific fields to fetch from the SequenceCounter
959
+ */
960
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
961
+ /**
962
+ * Omit specific fields from the SequenceCounter
963
+ */
964
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
965
+ /**
966
+ * The data needed to create a SequenceCounter.
967
+ */
968
+ data: Prisma.XOR<Prisma.SequenceCounterCreateInput, Prisma.SequenceCounterUncheckedCreateInput>
969
+ }
970
+
971
+ /**
972
+ * SequenceCounter createMany
973
+ */
974
+ export type SequenceCounterCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
975
+ /**
976
+ * The data used to create many SequenceCounters.
977
+ */
978
+ data: Prisma.SequenceCounterCreateManyInput | Prisma.SequenceCounterCreateManyInput[]
979
+ skipDuplicates?: boolean
980
+ }
981
+
982
+ /**
983
+ * SequenceCounter createManyAndReturn
984
+ */
985
+ export type SequenceCounterCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
986
+ /**
987
+ * Select specific fields to fetch from the SequenceCounter
988
+ */
989
+ select?: Prisma.SequenceCounterSelectCreateManyAndReturn<ExtArgs> | null
990
+ /**
991
+ * Omit specific fields from the SequenceCounter
992
+ */
993
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
994
+ /**
995
+ * The data used to create many SequenceCounters.
996
+ */
997
+ data: Prisma.SequenceCounterCreateManyInput | Prisma.SequenceCounterCreateManyInput[]
998
+ skipDuplicates?: boolean
999
+ }
1000
+
1001
+ /**
1002
+ * SequenceCounter update
1003
+ */
1004
+ export type SequenceCounterUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1005
+ /**
1006
+ * Select specific fields to fetch from the SequenceCounter
1007
+ */
1008
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
1009
+ /**
1010
+ * Omit specific fields from the SequenceCounter
1011
+ */
1012
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
1013
+ /**
1014
+ * The data needed to update a SequenceCounter.
1015
+ */
1016
+ data: Prisma.XOR<Prisma.SequenceCounterUpdateInput, Prisma.SequenceCounterUncheckedUpdateInput>
1017
+ /**
1018
+ * Choose, which SequenceCounter to update.
1019
+ */
1020
+ where: Prisma.SequenceCounterWhereUniqueInput
1021
+ }
1022
+
1023
+ /**
1024
+ * SequenceCounter updateMany
1025
+ */
1026
+ export type SequenceCounterUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1027
+ /**
1028
+ * The data used to update SequenceCounters.
1029
+ */
1030
+ data: Prisma.XOR<Prisma.SequenceCounterUpdateManyMutationInput, Prisma.SequenceCounterUncheckedUpdateManyInput>
1031
+ /**
1032
+ * Filter which SequenceCounters to update
1033
+ */
1034
+ where?: Prisma.SequenceCounterWhereInput
1035
+ /**
1036
+ * Limit how many SequenceCounters to update.
1037
+ */
1038
+ limit?: number
1039
+ }
1040
+
1041
+ /**
1042
+ * SequenceCounter updateManyAndReturn
1043
+ */
1044
+ export type SequenceCounterUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1045
+ /**
1046
+ * Select specific fields to fetch from the SequenceCounter
1047
+ */
1048
+ select?: Prisma.SequenceCounterSelectUpdateManyAndReturn<ExtArgs> | null
1049
+ /**
1050
+ * Omit specific fields from the SequenceCounter
1051
+ */
1052
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
1053
+ /**
1054
+ * The data used to update SequenceCounters.
1055
+ */
1056
+ data: Prisma.XOR<Prisma.SequenceCounterUpdateManyMutationInput, Prisma.SequenceCounterUncheckedUpdateManyInput>
1057
+ /**
1058
+ * Filter which SequenceCounters to update
1059
+ */
1060
+ where?: Prisma.SequenceCounterWhereInput
1061
+ /**
1062
+ * Limit how many SequenceCounters to update.
1063
+ */
1064
+ limit?: number
1065
+ }
1066
+
1067
+ /**
1068
+ * SequenceCounter upsert
1069
+ */
1070
+ export type SequenceCounterUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * Select specific fields to fetch from the SequenceCounter
1073
+ */
1074
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
1075
+ /**
1076
+ * Omit specific fields from the SequenceCounter
1077
+ */
1078
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
1079
+ /**
1080
+ * The filter to search for the SequenceCounter to update in case it exists.
1081
+ */
1082
+ where: Prisma.SequenceCounterWhereUniqueInput
1083
+ /**
1084
+ * In case the SequenceCounter found by the `where` argument doesn't exist, create a new SequenceCounter with this data.
1085
+ */
1086
+ create: Prisma.XOR<Prisma.SequenceCounterCreateInput, Prisma.SequenceCounterUncheckedCreateInput>
1087
+ /**
1088
+ * In case the SequenceCounter was found with the provided `where` argument, update it with this data.
1089
+ */
1090
+ update: Prisma.XOR<Prisma.SequenceCounterUpdateInput, Prisma.SequenceCounterUncheckedUpdateInput>
1091
+ }
1092
+
1093
+ /**
1094
+ * SequenceCounter delete
1095
+ */
1096
+ export type SequenceCounterDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1097
+ /**
1098
+ * Select specific fields to fetch from the SequenceCounter
1099
+ */
1100
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
1101
+ /**
1102
+ * Omit specific fields from the SequenceCounter
1103
+ */
1104
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
1105
+ /**
1106
+ * Filter which SequenceCounter to delete.
1107
+ */
1108
+ where: Prisma.SequenceCounterWhereUniqueInput
1109
+ }
1110
+
1111
+ /**
1112
+ * SequenceCounter deleteMany
1113
+ */
1114
+ export type SequenceCounterDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * Filter which SequenceCounters to delete
1117
+ */
1118
+ where?: Prisma.SequenceCounterWhereInput
1119
+ /**
1120
+ * Limit how many SequenceCounters to delete.
1121
+ */
1122
+ limit?: number
1123
+ }
1124
+
1125
+ /**
1126
+ * SequenceCounter without action
1127
+ */
1128
+ export type SequenceCounterDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1129
+ /**
1130
+ * Select specific fields to fetch from the SequenceCounter
1131
+ */
1132
+ select?: Prisma.SequenceCounterSelect<ExtArgs> | null
1133
+ /**
1134
+ * Omit specific fields from the SequenceCounter
1135
+ */
1136
+ omit?: Prisma.SequenceCounterOmit<ExtArgs> | null
1137
+ }