@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,1443 @@
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 `LicenseKey` 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 LicenseKey
17
+ *
18
+ */
19
+ export type LicenseKeyModel = runtime.Types.Result.DefaultSelection<Prisma.$LicenseKeyPayload>
20
+
21
+ export type AggregateLicenseKey = {
22
+ _count: LicenseKeyCountAggregateOutputType | null
23
+ _avg: LicenseKeyAvgAggregateOutputType | null
24
+ _sum: LicenseKeySumAggregateOutputType | null
25
+ _min: LicenseKeyMinAggregateOutputType | null
26
+ _max: LicenseKeyMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type LicenseKeyAvgAggregateOutputType = {
30
+ seats: number | null
31
+ }
32
+
33
+ export type LicenseKeySumAggregateOutputType = {
34
+ seats: number | null
35
+ }
36
+
37
+ export type LicenseKeyMinAggregateOutputType = {
38
+ id: string | null
39
+ key: string | null
40
+ signature: string | null
41
+ payload: string | null
42
+ customerId: string | null
43
+ customerName: string | null
44
+ customerEmail: string | null
45
+ plan: string | null
46
+ seats: number | null
47
+ features: string | null
48
+ issuedAt: Date | null
49
+ expiresAt: Date | null
50
+ revokedAt: Date | null
51
+ issuedById: string | null
52
+ }
53
+
54
+ export type LicenseKeyMaxAggregateOutputType = {
55
+ id: string | null
56
+ key: string | null
57
+ signature: string | null
58
+ payload: string | null
59
+ customerId: string | null
60
+ customerName: string | null
61
+ customerEmail: string | null
62
+ plan: string | null
63
+ seats: number | null
64
+ features: string | null
65
+ issuedAt: Date | null
66
+ expiresAt: Date | null
67
+ revokedAt: Date | null
68
+ issuedById: string | null
69
+ }
70
+
71
+ export type LicenseKeyCountAggregateOutputType = {
72
+ id: number
73
+ key: number
74
+ signature: number
75
+ payload: number
76
+ customerId: number
77
+ customerName: number
78
+ customerEmail: number
79
+ plan: number
80
+ seats: number
81
+ features: number
82
+ issuedAt: number
83
+ expiresAt: number
84
+ revokedAt: number
85
+ issuedById: number
86
+ _all: number
87
+ }
88
+
89
+
90
+ export type LicenseKeyAvgAggregateInputType = {
91
+ seats?: true
92
+ }
93
+
94
+ export type LicenseKeySumAggregateInputType = {
95
+ seats?: true
96
+ }
97
+
98
+ export type LicenseKeyMinAggregateInputType = {
99
+ id?: true
100
+ key?: true
101
+ signature?: true
102
+ payload?: true
103
+ customerId?: true
104
+ customerName?: true
105
+ customerEmail?: true
106
+ plan?: true
107
+ seats?: true
108
+ features?: true
109
+ issuedAt?: true
110
+ expiresAt?: true
111
+ revokedAt?: true
112
+ issuedById?: true
113
+ }
114
+
115
+ export type LicenseKeyMaxAggregateInputType = {
116
+ id?: true
117
+ key?: true
118
+ signature?: true
119
+ payload?: true
120
+ customerId?: true
121
+ customerName?: true
122
+ customerEmail?: true
123
+ plan?: true
124
+ seats?: true
125
+ features?: true
126
+ issuedAt?: true
127
+ expiresAt?: true
128
+ revokedAt?: true
129
+ issuedById?: true
130
+ }
131
+
132
+ export type LicenseKeyCountAggregateInputType = {
133
+ id?: true
134
+ key?: true
135
+ signature?: true
136
+ payload?: true
137
+ customerId?: true
138
+ customerName?: true
139
+ customerEmail?: true
140
+ plan?: true
141
+ seats?: true
142
+ features?: true
143
+ issuedAt?: true
144
+ expiresAt?: true
145
+ revokedAt?: true
146
+ issuedById?: true
147
+ _all?: true
148
+ }
149
+
150
+ export type LicenseKeyAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
151
+ /**
152
+ * Filter which LicenseKey to aggregate.
153
+ */
154
+ where?: Prisma.LicenseKeyWhereInput
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
157
+ *
158
+ * Determine the order of LicenseKeys to fetch.
159
+ */
160
+ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
163
+ *
164
+ * Sets the start position
165
+ */
166
+ cursor?: Prisma.LicenseKeyWhereUniqueInput
167
+ /**
168
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
169
+ *
170
+ * Take `±n` LicenseKeys from the position of the cursor.
171
+ */
172
+ take?: number
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
175
+ *
176
+ * Skip the first `n` LicenseKeys.
177
+ */
178
+ skip?: number
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
181
+ *
182
+ * Count returned LicenseKeys
183
+ **/
184
+ _count?: true | LicenseKeyCountAggregateInputType
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
187
+ *
188
+ * Select which fields to average
189
+ **/
190
+ _avg?: LicenseKeyAvgAggregateInputType
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
193
+ *
194
+ * Select which fields to sum
195
+ **/
196
+ _sum?: LicenseKeySumAggregateInputType
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Select which fields to find the minimum value
201
+ **/
202
+ _min?: LicenseKeyMinAggregateInputType
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
+ *
206
+ * Select which fields to find the maximum value
207
+ **/
208
+ _max?: LicenseKeyMaxAggregateInputType
209
+ }
210
+
211
+ export type GetLicenseKeyAggregateType<T extends LicenseKeyAggregateArgs> = {
212
+ [P in keyof T & keyof AggregateLicenseKey]: P extends '_count' | 'count'
213
+ ? T[P] extends true
214
+ ? number
215
+ : Prisma.GetScalarType<T[P], AggregateLicenseKey[P]>
216
+ : Prisma.GetScalarType<T[P], AggregateLicenseKey[P]>
217
+ }
218
+
219
+
220
+
221
+
222
+ export type LicenseKeyGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
223
+ where?: Prisma.LicenseKeyWhereInput
224
+ orderBy?: Prisma.LicenseKeyOrderByWithAggregationInput | Prisma.LicenseKeyOrderByWithAggregationInput[]
225
+ by: Prisma.LicenseKeyScalarFieldEnum[] | Prisma.LicenseKeyScalarFieldEnum
226
+ having?: Prisma.LicenseKeyScalarWhereWithAggregatesInput
227
+ take?: number
228
+ skip?: number
229
+ _count?: LicenseKeyCountAggregateInputType | true
230
+ _avg?: LicenseKeyAvgAggregateInputType
231
+ _sum?: LicenseKeySumAggregateInputType
232
+ _min?: LicenseKeyMinAggregateInputType
233
+ _max?: LicenseKeyMaxAggregateInputType
234
+ }
235
+
236
+ export type LicenseKeyGroupByOutputType = {
237
+ id: string
238
+ key: string
239
+ signature: string
240
+ payload: string
241
+ customerId: string
242
+ customerName: string
243
+ customerEmail: string
244
+ plan: string
245
+ seats: number
246
+ features: string
247
+ issuedAt: Date
248
+ expiresAt: Date | null
249
+ revokedAt: Date | null
250
+ issuedById: string | null
251
+ _count: LicenseKeyCountAggregateOutputType | null
252
+ _avg: LicenseKeyAvgAggregateOutputType | null
253
+ _sum: LicenseKeySumAggregateOutputType | null
254
+ _min: LicenseKeyMinAggregateOutputType | null
255
+ _max: LicenseKeyMaxAggregateOutputType | null
256
+ }
257
+
258
+ export type GetLicenseKeyGroupByPayload<T extends LicenseKeyGroupByArgs> = Prisma.PrismaPromise<
259
+ Array<
260
+ Prisma.PickEnumerable<LicenseKeyGroupByOutputType, T['by']> &
261
+ {
262
+ [P in ((keyof T) & (keyof LicenseKeyGroupByOutputType))]: P extends '_count'
263
+ ? T[P] extends boolean
264
+ ? number
265
+ : Prisma.GetScalarType<T[P], LicenseKeyGroupByOutputType[P]>
266
+ : Prisma.GetScalarType<T[P], LicenseKeyGroupByOutputType[P]>
267
+ }
268
+ >
269
+ >
270
+
271
+
272
+
273
+ export type LicenseKeyWhereInput = {
274
+ AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
275
+ OR?: Prisma.LicenseKeyWhereInput[]
276
+ NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
277
+ id?: Prisma.StringFilter<"LicenseKey"> | string
278
+ key?: Prisma.StringFilter<"LicenseKey"> | string
279
+ signature?: Prisma.StringFilter<"LicenseKey"> | string
280
+ payload?: Prisma.StringFilter<"LicenseKey"> | string
281
+ customerId?: Prisma.StringFilter<"LicenseKey"> | string
282
+ customerName?: Prisma.StringFilter<"LicenseKey"> | string
283
+ customerEmail?: Prisma.StringFilter<"LicenseKey"> | string
284
+ plan?: Prisma.StringFilter<"LicenseKey"> | string
285
+ seats?: Prisma.IntFilter<"LicenseKey"> | number
286
+ features?: Prisma.StringFilter<"LicenseKey"> | string
287
+ issuedAt?: Prisma.DateTimeFilter<"LicenseKey"> | Date | string
288
+ expiresAt?: Prisma.DateTimeNullableFilter<"LicenseKey"> | Date | string | null
289
+ revokedAt?: Prisma.DateTimeNullableFilter<"LicenseKey"> | Date | string | null
290
+ issuedById?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
291
+ }
292
+
293
+ export type LicenseKeyOrderByWithRelationInput = {
294
+ id?: Prisma.SortOrder
295
+ key?: Prisma.SortOrder
296
+ signature?: Prisma.SortOrder
297
+ payload?: Prisma.SortOrder
298
+ customerId?: Prisma.SortOrder
299
+ customerName?: Prisma.SortOrder
300
+ customerEmail?: Prisma.SortOrder
301
+ plan?: Prisma.SortOrder
302
+ seats?: Prisma.SortOrder
303
+ features?: Prisma.SortOrder
304
+ issuedAt?: Prisma.SortOrder
305
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
306
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
307
+ issuedById?: Prisma.SortOrderInput | Prisma.SortOrder
308
+ }
309
+
310
+ export type LicenseKeyWhereUniqueInput = Prisma.AtLeast<{
311
+ id?: string
312
+ key?: string
313
+ AND?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
314
+ OR?: Prisma.LicenseKeyWhereInput[]
315
+ NOT?: Prisma.LicenseKeyWhereInput | Prisma.LicenseKeyWhereInput[]
316
+ signature?: Prisma.StringFilter<"LicenseKey"> | string
317
+ payload?: Prisma.StringFilter<"LicenseKey"> | string
318
+ customerId?: Prisma.StringFilter<"LicenseKey"> | string
319
+ customerName?: Prisma.StringFilter<"LicenseKey"> | string
320
+ customerEmail?: Prisma.StringFilter<"LicenseKey"> | string
321
+ plan?: Prisma.StringFilter<"LicenseKey"> | string
322
+ seats?: Prisma.IntFilter<"LicenseKey"> | number
323
+ features?: Prisma.StringFilter<"LicenseKey"> | string
324
+ issuedAt?: Prisma.DateTimeFilter<"LicenseKey"> | Date | string
325
+ expiresAt?: Prisma.DateTimeNullableFilter<"LicenseKey"> | Date | string | null
326
+ revokedAt?: Prisma.DateTimeNullableFilter<"LicenseKey"> | Date | string | null
327
+ issuedById?: Prisma.StringNullableFilter<"LicenseKey"> | string | null
328
+ }, "id" | "key">
329
+
330
+ export type LicenseKeyOrderByWithAggregationInput = {
331
+ id?: Prisma.SortOrder
332
+ key?: Prisma.SortOrder
333
+ signature?: Prisma.SortOrder
334
+ payload?: Prisma.SortOrder
335
+ customerId?: Prisma.SortOrder
336
+ customerName?: Prisma.SortOrder
337
+ customerEmail?: Prisma.SortOrder
338
+ plan?: Prisma.SortOrder
339
+ seats?: Prisma.SortOrder
340
+ features?: Prisma.SortOrder
341
+ issuedAt?: Prisma.SortOrder
342
+ expiresAt?: Prisma.SortOrderInput | Prisma.SortOrder
343
+ revokedAt?: Prisma.SortOrderInput | Prisma.SortOrder
344
+ issuedById?: Prisma.SortOrderInput | Prisma.SortOrder
345
+ _count?: Prisma.LicenseKeyCountOrderByAggregateInput
346
+ _avg?: Prisma.LicenseKeyAvgOrderByAggregateInput
347
+ _max?: Prisma.LicenseKeyMaxOrderByAggregateInput
348
+ _min?: Prisma.LicenseKeyMinOrderByAggregateInput
349
+ _sum?: Prisma.LicenseKeySumOrderByAggregateInput
350
+ }
351
+
352
+ export type LicenseKeyScalarWhereWithAggregatesInput = {
353
+ AND?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
354
+ OR?: Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
355
+ NOT?: Prisma.LicenseKeyScalarWhereWithAggregatesInput | Prisma.LicenseKeyScalarWhereWithAggregatesInput[]
356
+ id?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
357
+ key?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
358
+ signature?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
359
+ payload?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
360
+ customerId?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
361
+ customerName?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
362
+ customerEmail?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
363
+ plan?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
364
+ seats?: Prisma.IntWithAggregatesFilter<"LicenseKey"> | number
365
+ features?: Prisma.StringWithAggregatesFilter<"LicenseKey"> | string
366
+ issuedAt?: Prisma.DateTimeWithAggregatesFilter<"LicenseKey"> | Date | string
367
+ expiresAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LicenseKey"> | Date | string | null
368
+ revokedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"LicenseKey"> | Date | string | null
369
+ issuedById?: Prisma.StringNullableWithAggregatesFilter<"LicenseKey"> | string | null
370
+ }
371
+
372
+ export type LicenseKeyCreateInput = {
373
+ id?: string
374
+ key: string
375
+ signature: string
376
+ payload?: string
377
+ customerId: string
378
+ customerName: string
379
+ customerEmail: string
380
+ plan?: string
381
+ seats: number
382
+ features?: string
383
+ issuedAt?: Date | string
384
+ expiresAt?: Date | string | null
385
+ revokedAt?: Date | string | null
386
+ issuedById?: string | null
387
+ }
388
+
389
+ export type LicenseKeyUncheckedCreateInput = {
390
+ id?: string
391
+ key: string
392
+ signature: string
393
+ payload?: string
394
+ customerId: string
395
+ customerName: string
396
+ customerEmail: string
397
+ plan?: string
398
+ seats: number
399
+ features?: string
400
+ issuedAt?: Date | string
401
+ expiresAt?: Date | string | null
402
+ revokedAt?: Date | string | null
403
+ issuedById?: string | null
404
+ }
405
+
406
+ export type LicenseKeyUpdateInput = {
407
+ id?: Prisma.StringFieldUpdateOperationsInput | string
408
+ key?: Prisma.StringFieldUpdateOperationsInput | string
409
+ signature?: Prisma.StringFieldUpdateOperationsInput | string
410
+ payload?: Prisma.StringFieldUpdateOperationsInput | string
411
+ customerId?: Prisma.StringFieldUpdateOperationsInput | string
412
+ customerName?: Prisma.StringFieldUpdateOperationsInput | string
413
+ customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
414
+ plan?: Prisma.StringFieldUpdateOperationsInput | string
415
+ seats?: Prisma.IntFieldUpdateOperationsInput | number
416
+ features?: Prisma.StringFieldUpdateOperationsInput | string
417
+ issuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
418
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
419
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
420
+ issuedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
421
+ }
422
+
423
+ export type LicenseKeyUncheckedUpdateInput = {
424
+ id?: Prisma.StringFieldUpdateOperationsInput | string
425
+ key?: Prisma.StringFieldUpdateOperationsInput | string
426
+ signature?: Prisma.StringFieldUpdateOperationsInput | string
427
+ payload?: Prisma.StringFieldUpdateOperationsInput | string
428
+ customerId?: Prisma.StringFieldUpdateOperationsInput | string
429
+ customerName?: Prisma.StringFieldUpdateOperationsInput | string
430
+ customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
431
+ plan?: Prisma.StringFieldUpdateOperationsInput | string
432
+ seats?: Prisma.IntFieldUpdateOperationsInput | number
433
+ features?: Prisma.StringFieldUpdateOperationsInput | string
434
+ issuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
435
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
436
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
437
+ issuedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
438
+ }
439
+
440
+ export type LicenseKeyCreateManyInput = {
441
+ id?: string
442
+ key: string
443
+ signature: string
444
+ payload?: string
445
+ customerId: string
446
+ customerName: string
447
+ customerEmail: string
448
+ plan?: string
449
+ seats: number
450
+ features?: string
451
+ issuedAt?: Date | string
452
+ expiresAt?: Date | string | null
453
+ revokedAt?: Date | string | null
454
+ issuedById?: string | null
455
+ }
456
+
457
+ export type LicenseKeyUpdateManyMutationInput = {
458
+ id?: Prisma.StringFieldUpdateOperationsInput | string
459
+ key?: Prisma.StringFieldUpdateOperationsInput | string
460
+ signature?: Prisma.StringFieldUpdateOperationsInput | string
461
+ payload?: Prisma.StringFieldUpdateOperationsInput | string
462
+ customerId?: Prisma.StringFieldUpdateOperationsInput | string
463
+ customerName?: Prisma.StringFieldUpdateOperationsInput | string
464
+ customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
465
+ plan?: Prisma.StringFieldUpdateOperationsInput | string
466
+ seats?: Prisma.IntFieldUpdateOperationsInput | number
467
+ features?: Prisma.StringFieldUpdateOperationsInput | string
468
+ issuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
469
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
470
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
471
+ issuedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
472
+ }
473
+
474
+ export type LicenseKeyUncheckedUpdateManyInput = {
475
+ id?: Prisma.StringFieldUpdateOperationsInput | string
476
+ key?: Prisma.StringFieldUpdateOperationsInput | string
477
+ signature?: Prisma.StringFieldUpdateOperationsInput | string
478
+ payload?: Prisma.StringFieldUpdateOperationsInput | string
479
+ customerId?: Prisma.StringFieldUpdateOperationsInput | string
480
+ customerName?: Prisma.StringFieldUpdateOperationsInput | string
481
+ customerEmail?: Prisma.StringFieldUpdateOperationsInput | string
482
+ plan?: Prisma.StringFieldUpdateOperationsInput | string
483
+ seats?: Prisma.IntFieldUpdateOperationsInput | number
484
+ features?: Prisma.StringFieldUpdateOperationsInput | string
485
+ issuedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
486
+ expiresAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
487
+ revokedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
488
+ issuedById?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
489
+ }
490
+
491
+ export type LicenseKeyCountOrderByAggregateInput = {
492
+ id?: Prisma.SortOrder
493
+ key?: Prisma.SortOrder
494
+ signature?: Prisma.SortOrder
495
+ payload?: Prisma.SortOrder
496
+ customerId?: Prisma.SortOrder
497
+ customerName?: Prisma.SortOrder
498
+ customerEmail?: Prisma.SortOrder
499
+ plan?: Prisma.SortOrder
500
+ seats?: Prisma.SortOrder
501
+ features?: Prisma.SortOrder
502
+ issuedAt?: Prisma.SortOrder
503
+ expiresAt?: Prisma.SortOrder
504
+ revokedAt?: Prisma.SortOrder
505
+ issuedById?: Prisma.SortOrder
506
+ }
507
+
508
+ export type LicenseKeyAvgOrderByAggregateInput = {
509
+ seats?: Prisma.SortOrder
510
+ }
511
+
512
+ export type LicenseKeyMaxOrderByAggregateInput = {
513
+ id?: Prisma.SortOrder
514
+ key?: Prisma.SortOrder
515
+ signature?: Prisma.SortOrder
516
+ payload?: Prisma.SortOrder
517
+ customerId?: Prisma.SortOrder
518
+ customerName?: Prisma.SortOrder
519
+ customerEmail?: Prisma.SortOrder
520
+ plan?: Prisma.SortOrder
521
+ seats?: Prisma.SortOrder
522
+ features?: Prisma.SortOrder
523
+ issuedAt?: Prisma.SortOrder
524
+ expiresAt?: Prisma.SortOrder
525
+ revokedAt?: Prisma.SortOrder
526
+ issuedById?: Prisma.SortOrder
527
+ }
528
+
529
+ export type LicenseKeyMinOrderByAggregateInput = {
530
+ id?: Prisma.SortOrder
531
+ key?: Prisma.SortOrder
532
+ signature?: Prisma.SortOrder
533
+ payload?: Prisma.SortOrder
534
+ customerId?: Prisma.SortOrder
535
+ customerName?: Prisma.SortOrder
536
+ customerEmail?: Prisma.SortOrder
537
+ plan?: Prisma.SortOrder
538
+ seats?: Prisma.SortOrder
539
+ features?: Prisma.SortOrder
540
+ issuedAt?: Prisma.SortOrder
541
+ expiresAt?: Prisma.SortOrder
542
+ revokedAt?: Prisma.SortOrder
543
+ issuedById?: Prisma.SortOrder
544
+ }
545
+
546
+ export type LicenseKeySumOrderByAggregateInput = {
547
+ seats?: Prisma.SortOrder
548
+ }
549
+
550
+
551
+
552
+ export type LicenseKeySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
553
+ id?: boolean
554
+ key?: boolean
555
+ signature?: boolean
556
+ payload?: boolean
557
+ customerId?: boolean
558
+ customerName?: boolean
559
+ customerEmail?: boolean
560
+ plan?: boolean
561
+ seats?: boolean
562
+ features?: boolean
563
+ issuedAt?: boolean
564
+ expiresAt?: boolean
565
+ revokedAt?: boolean
566
+ issuedById?: boolean
567
+ }, ExtArgs["result"]["licenseKey"]>
568
+
569
+ export type LicenseKeySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
570
+ id?: boolean
571
+ key?: boolean
572
+ signature?: boolean
573
+ payload?: boolean
574
+ customerId?: boolean
575
+ customerName?: boolean
576
+ customerEmail?: boolean
577
+ plan?: boolean
578
+ seats?: boolean
579
+ features?: boolean
580
+ issuedAt?: boolean
581
+ expiresAt?: boolean
582
+ revokedAt?: boolean
583
+ issuedById?: boolean
584
+ }, ExtArgs["result"]["licenseKey"]>
585
+
586
+ export type LicenseKeySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
587
+ id?: boolean
588
+ key?: boolean
589
+ signature?: boolean
590
+ payload?: boolean
591
+ customerId?: boolean
592
+ customerName?: boolean
593
+ customerEmail?: boolean
594
+ plan?: boolean
595
+ seats?: boolean
596
+ features?: boolean
597
+ issuedAt?: boolean
598
+ expiresAt?: boolean
599
+ revokedAt?: boolean
600
+ issuedById?: boolean
601
+ }, ExtArgs["result"]["licenseKey"]>
602
+
603
+ export type LicenseKeySelectScalar = {
604
+ id?: boolean
605
+ key?: boolean
606
+ signature?: boolean
607
+ payload?: boolean
608
+ customerId?: boolean
609
+ customerName?: boolean
610
+ customerEmail?: boolean
611
+ plan?: boolean
612
+ seats?: boolean
613
+ features?: boolean
614
+ issuedAt?: boolean
615
+ expiresAt?: boolean
616
+ revokedAt?: boolean
617
+ issuedById?: boolean
618
+ }
619
+
620
+ export type LicenseKeyOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "key" | "signature" | "payload" | "customerId" | "customerName" | "customerEmail" | "plan" | "seats" | "features" | "issuedAt" | "expiresAt" | "revokedAt" | "issuedById", ExtArgs["result"]["licenseKey"]>
621
+
622
+ export type $LicenseKeyPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
623
+ name: "LicenseKey"
624
+ objects: {}
625
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
626
+ id: string
627
+ key: string
628
+ signature: string
629
+ payload: string
630
+ customerId: string
631
+ customerName: string
632
+ customerEmail: string
633
+ plan: string
634
+ seats: number
635
+ features: string
636
+ issuedAt: Date
637
+ expiresAt: Date | null
638
+ revokedAt: Date | null
639
+ issuedById: string | null
640
+ }, ExtArgs["result"]["licenseKey"]>
641
+ composites: {}
642
+ }
643
+
644
+ export type LicenseKeyGetPayload<S extends boolean | null | undefined | LicenseKeyDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload, S>
645
+
646
+ export type LicenseKeyCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
647
+ Omit<LicenseKeyFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
648
+ select?: LicenseKeyCountAggregateInputType | true
649
+ }
650
+
651
+ export interface LicenseKeyDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
652
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LicenseKey'], meta: { name: 'LicenseKey' } }
653
+ /**
654
+ * Find zero or one LicenseKey that matches the filter.
655
+ * @param {LicenseKeyFindUniqueArgs} args - Arguments to find a LicenseKey
656
+ * @example
657
+ * // Get one LicenseKey
658
+ * const licenseKey = await prisma.licenseKey.findUnique({
659
+ * where: {
660
+ * // ... provide filter here
661
+ * }
662
+ * })
663
+ */
664
+ findUnique<T extends LicenseKeyFindUniqueArgs>(args: Prisma.SelectSubset<T, LicenseKeyFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
665
+
666
+ /**
667
+ * Find one LicenseKey that matches the filter or throw an error with `error.code='P2025'`
668
+ * if no matches were found.
669
+ * @param {LicenseKeyFindUniqueOrThrowArgs} args - Arguments to find a LicenseKey
670
+ * @example
671
+ * // Get one LicenseKey
672
+ * const licenseKey = await prisma.licenseKey.findUniqueOrThrow({
673
+ * where: {
674
+ * // ... provide filter here
675
+ * }
676
+ * })
677
+ */
678
+ findUniqueOrThrow<T extends LicenseKeyFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LicenseKeyFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
679
+
680
+ /**
681
+ * Find the first LicenseKey that matches the filter.
682
+ * Note, that providing `undefined` is treated as the value not being there.
683
+ * Read more here: https://pris.ly/d/null-undefined
684
+ * @param {LicenseKeyFindFirstArgs} args - Arguments to find a LicenseKey
685
+ * @example
686
+ * // Get one LicenseKey
687
+ * const licenseKey = await prisma.licenseKey.findFirst({
688
+ * where: {
689
+ * // ... provide filter here
690
+ * }
691
+ * })
692
+ */
693
+ findFirst<T extends LicenseKeyFindFirstArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindFirstArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
694
+
695
+ /**
696
+ * Find the first LicenseKey that matches the filter or
697
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
698
+ * Note, that providing `undefined` is treated as the value not being there.
699
+ * Read more here: https://pris.ly/d/null-undefined
700
+ * @param {LicenseKeyFindFirstOrThrowArgs} args - Arguments to find a LicenseKey
701
+ * @example
702
+ * // Get one LicenseKey
703
+ * const licenseKey = await prisma.licenseKey.findFirstOrThrow({
704
+ * where: {
705
+ * // ... provide filter here
706
+ * }
707
+ * })
708
+ */
709
+ findFirstOrThrow<T extends LicenseKeyFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
710
+
711
+ /**
712
+ * Find zero or more LicenseKeys that matches the filter.
713
+ * Note, that providing `undefined` is treated as the value not being there.
714
+ * Read more here: https://pris.ly/d/null-undefined
715
+ * @param {LicenseKeyFindManyArgs} args - Arguments to filter and select certain fields only.
716
+ * @example
717
+ * // Get all LicenseKeys
718
+ * const licenseKeys = await prisma.licenseKey.findMany()
719
+ *
720
+ * // Get first 10 LicenseKeys
721
+ * const licenseKeys = await prisma.licenseKey.findMany({ take: 10 })
722
+ *
723
+ * // Only select the `id`
724
+ * const licenseKeyWithIdOnly = await prisma.licenseKey.findMany({ select: { id: true } })
725
+ *
726
+ */
727
+ findMany<T extends LicenseKeyFindManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
728
+
729
+ /**
730
+ * Create a LicenseKey.
731
+ * @param {LicenseKeyCreateArgs} args - Arguments to create a LicenseKey.
732
+ * @example
733
+ * // Create one LicenseKey
734
+ * const LicenseKey = await prisma.licenseKey.create({
735
+ * data: {
736
+ * // ... data to create a LicenseKey
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ create<T extends LicenseKeyCreateArgs>(args: Prisma.SelectSubset<T, LicenseKeyCreateArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
742
+
743
+ /**
744
+ * Create many LicenseKeys.
745
+ * @param {LicenseKeyCreateManyArgs} args - Arguments to create many LicenseKeys.
746
+ * @example
747
+ * // Create many LicenseKeys
748
+ * const licenseKey = await prisma.licenseKey.createMany({
749
+ * data: [
750
+ * // ... provide data here
751
+ * ]
752
+ * })
753
+ *
754
+ */
755
+ createMany<T extends LicenseKeyCreateManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
756
+
757
+ /**
758
+ * Create many LicenseKeys and returns the data saved in the database.
759
+ * @param {LicenseKeyCreateManyAndReturnArgs} args - Arguments to create many LicenseKeys.
760
+ * @example
761
+ * // Create many LicenseKeys
762
+ * const licenseKey = await prisma.licenseKey.createManyAndReturn({
763
+ * data: [
764
+ * // ... provide data here
765
+ * ]
766
+ * })
767
+ *
768
+ * // Create many LicenseKeys and only return the `id`
769
+ * const licenseKeyWithIdOnly = await prisma.licenseKey.createManyAndReturn({
770
+ * select: { id: true },
771
+ * data: [
772
+ * // ... provide data here
773
+ * ]
774
+ * })
775
+ * Note, that providing `undefined` is treated as the value not being there.
776
+ * Read more here: https://pris.ly/d/null-undefined
777
+ *
778
+ */
779
+ createManyAndReturn<T extends LicenseKeyCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LicenseKeyCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
780
+
781
+ /**
782
+ * Delete a LicenseKey.
783
+ * @param {LicenseKeyDeleteArgs} args - Arguments to delete one LicenseKey.
784
+ * @example
785
+ * // Delete one LicenseKey
786
+ * const LicenseKey = await prisma.licenseKey.delete({
787
+ * where: {
788
+ * // ... filter to delete one LicenseKey
789
+ * }
790
+ * })
791
+ *
792
+ */
793
+ delete<T extends LicenseKeyDeleteArgs>(args: Prisma.SelectSubset<T, LicenseKeyDeleteArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
794
+
795
+ /**
796
+ * Update one LicenseKey.
797
+ * @param {LicenseKeyUpdateArgs} args - Arguments to update one LicenseKey.
798
+ * @example
799
+ * // Update one LicenseKey
800
+ * const licenseKey = await prisma.licenseKey.update({
801
+ * where: {
802
+ * // ... provide filter here
803
+ * },
804
+ * data: {
805
+ * // ... provide data here
806
+ * }
807
+ * })
808
+ *
809
+ */
810
+ update<T extends LicenseKeyUpdateArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
811
+
812
+ /**
813
+ * Delete zero or more LicenseKeys.
814
+ * @param {LicenseKeyDeleteManyArgs} args - Arguments to filter LicenseKeys to delete.
815
+ * @example
816
+ * // Delete a few LicenseKeys
817
+ * const { count } = await prisma.licenseKey.deleteMany({
818
+ * where: {
819
+ * // ... provide filter here
820
+ * }
821
+ * })
822
+ *
823
+ */
824
+ deleteMany<T extends LicenseKeyDeleteManyArgs>(args?: Prisma.SelectSubset<T, LicenseKeyDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
825
+
826
+ /**
827
+ * Update zero or more LicenseKeys.
828
+ * Note, that providing `undefined` is treated as the value not being there.
829
+ * Read more here: https://pris.ly/d/null-undefined
830
+ * @param {LicenseKeyUpdateManyArgs} args - Arguments to update one or more rows.
831
+ * @example
832
+ * // Update many LicenseKeys
833
+ * const licenseKey = await prisma.licenseKey.updateMany({
834
+ * where: {
835
+ * // ... provide filter here
836
+ * },
837
+ * data: {
838
+ * // ... provide data here
839
+ * }
840
+ * })
841
+ *
842
+ */
843
+ updateMany<T extends LicenseKeyUpdateManyArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
844
+
845
+ /**
846
+ * Update zero or more LicenseKeys and returns the data updated in the database.
847
+ * @param {LicenseKeyUpdateManyAndReturnArgs} args - Arguments to update many LicenseKeys.
848
+ * @example
849
+ * // Update many LicenseKeys
850
+ * const licenseKey = await prisma.licenseKey.updateManyAndReturn({
851
+ * where: {
852
+ * // ... provide filter here
853
+ * },
854
+ * data: [
855
+ * // ... provide data here
856
+ * ]
857
+ * })
858
+ *
859
+ * // Update zero or more LicenseKeys and only return the `id`
860
+ * const licenseKeyWithIdOnly = await prisma.licenseKey.updateManyAndReturn({
861
+ * select: { id: true },
862
+ * where: {
863
+ * // ... provide filter here
864
+ * },
865
+ * data: [
866
+ * // ... provide data here
867
+ * ]
868
+ * })
869
+ * Note, that providing `undefined` is treated as the value not being there.
870
+ * Read more here: https://pris.ly/d/null-undefined
871
+ *
872
+ */
873
+ updateManyAndReturn<T extends LicenseKeyUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
874
+
875
+ /**
876
+ * Create or update one LicenseKey.
877
+ * @param {LicenseKeyUpsertArgs} args - Arguments to update or create a LicenseKey.
878
+ * @example
879
+ * // Update or create a LicenseKey
880
+ * const licenseKey = await prisma.licenseKey.upsert({
881
+ * create: {
882
+ * // ... data to create a LicenseKey
883
+ * },
884
+ * update: {
885
+ * // ... in case it already exists, update
886
+ * },
887
+ * where: {
888
+ * // ... the filter for the LicenseKey we want to update
889
+ * }
890
+ * })
891
+ */
892
+ upsert<T extends LicenseKeyUpsertArgs>(args: Prisma.SelectSubset<T, LicenseKeyUpsertArgs<ExtArgs>>): Prisma.Prisma__LicenseKeyClient<runtime.Types.Result.GetResult<Prisma.$LicenseKeyPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
893
+
894
+
895
+ /**
896
+ * Count the number of LicenseKeys.
897
+ * Note, that providing `undefined` is treated as the value not being there.
898
+ * Read more here: https://pris.ly/d/null-undefined
899
+ * @param {LicenseKeyCountArgs} args - Arguments to filter LicenseKeys to count.
900
+ * @example
901
+ * // Count the number of LicenseKeys
902
+ * const count = await prisma.licenseKey.count({
903
+ * where: {
904
+ * // ... the filter for the LicenseKeys we want to count
905
+ * }
906
+ * })
907
+ **/
908
+ count<T extends LicenseKeyCountArgs>(
909
+ args?: Prisma.Subset<T, LicenseKeyCountArgs>,
910
+ ): Prisma.PrismaPromise<
911
+ T extends runtime.Types.Utils.Record<'select', any>
912
+ ? T['select'] extends true
913
+ ? number
914
+ : Prisma.GetScalarType<T['select'], LicenseKeyCountAggregateOutputType>
915
+ : number
916
+ >
917
+
918
+ /**
919
+ * Allows you to perform aggregations operations on a LicenseKey.
920
+ * Note, that providing `undefined` is treated as the value not being there.
921
+ * Read more here: https://pris.ly/d/null-undefined
922
+ * @param {LicenseKeyAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
923
+ * @example
924
+ * // Ordered by age ascending
925
+ * // Where email contains prisma.io
926
+ * // Limited to the 10 users
927
+ * const aggregations = await prisma.user.aggregate({
928
+ * _avg: {
929
+ * age: true,
930
+ * },
931
+ * where: {
932
+ * email: {
933
+ * contains: "prisma.io",
934
+ * },
935
+ * },
936
+ * orderBy: {
937
+ * age: "asc",
938
+ * },
939
+ * take: 10,
940
+ * })
941
+ **/
942
+ aggregate<T extends LicenseKeyAggregateArgs>(args: Prisma.Subset<T, LicenseKeyAggregateArgs>): Prisma.PrismaPromise<GetLicenseKeyAggregateType<T>>
943
+
944
+ /**
945
+ * Group by LicenseKey.
946
+ * Note, that providing `undefined` is treated as the value not being there.
947
+ * Read more here: https://pris.ly/d/null-undefined
948
+ * @param {LicenseKeyGroupByArgs} args - Group by arguments.
949
+ * @example
950
+ * // Group by city, order by createdAt, get count
951
+ * const result = await prisma.user.groupBy({
952
+ * by: ['city', 'createdAt'],
953
+ * orderBy: {
954
+ * createdAt: true
955
+ * },
956
+ * _count: {
957
+ * _all: true
958
+ * },
959
+ * })
960
+ *
961
+ **/
962
+ groupBy<
963
+ T extends LicenseKeyGroupByArgs,
964
+ HasSelectOrTake extends Prisma.Or<
965
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
966
+ Prisma.Extends<'take', Prisma.Keys<T>>
967
+ >,
968
+ OrderByArg extends Prisma.True extends HasSelectOrTake
969
+ ? { orderBy: LicenseKeyGroupByArgs['orderBy'] }
970
+ : { orderBy?: LicenseKeyGroupByArgs['orderBy'] },
971
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
972
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
973
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
974
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
975
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
976
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
977
+ InputErrors extends ByEmpty extends Prisma.True
978
+ ? `Error: "by" must not be empty.`
979
+ : HavingValid extends Prisma.False
980
+ ? {
981
+ [P in HavingFields]: P extends ByFields
982
+ ? never
983
+ : P extends string
984
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
985
+ : [
986
+ Error,
987
+ 'Field ',
988
+ P,
989
+ ` in "having" needs to be provided in "by"`,
990
+ ]
991
+ }[HavingFields]
992
+ : 'take' extends Prisma.Keys<T>
993
+ ? 'orderBy' extends Prisma.Keys<T>
994
+ ? ByValid extends Prisma.True
995
+ ? {}
996
+ : {
997
+ [P in OrderFields]: P extends ByFields
998
+ ? never
999
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1000
+ }[OrderFields]
1001
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1002
+ : 'skip' extends Prisma.Keys<T>
1003
+ ? 'orderBy' extends Prisma.Keys<T>
1004
+ ? ByValid extends Prisma.True
1005
+ ? {}
1006
+ : {
1007
+ [P in OrderFields]: P extends ByFields
1008
+ ? never
1009
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1010
+ }[OrderFields]
1011
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1012
+ : ByValid extends Prisma.True
1013
+ ? {}
1014
+ : {
1015
+ [P in OrderFields]: P extends ByFields
1016
+ ? never
1017
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1018
+ }[OrderFields]
1019
+ >(args: Prisma.SubsetIntersection<T, LicenseKeyGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLicenseKeyGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1020
+ /**
1021
+ * Fields of the LicenseKey model
1022
+ */
1023
+ readonly fields: LicenseKeyFieldRefs;
1024
+ }
1025
+
1026
+ /**
1027
+ * The delegate class that acts as a "Promise-like" for LicenseKey.
1028
+ * Why is this prefixed with `Prisma__`?
1029
+ * Because we want to prevent naming conflicts as mentioned in
1030
+ * https://github.com/prisma/prisma-client-js/issues/707
1031
+ */
1032
+ export interface Prisma__LicenseKeyClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1033
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1034
+ /**
1035
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1036
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1037
+ * @param onrejected The callback to execute when the Promise is rejected.
1038
+ * @returns A Promise for the completion of which ever callback is executed.
1039
+ */
1040
+ 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>
1041
+ /**
1042
+ * Attaches a callback for only the rejection of the Promise.
1043
+ * @param onrejected The callback to execute when the Promise is rejected.
1044
+ * @returns A Promise for the completion of the callback.
1045
+ */
1046
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1047
+ /**
1048
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1049
+ * resolved value cannot be modified from the callback.
1050
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1051
+ * @returns A Promise for the completion of the callback.
1052
+ */
1053
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1054
+ }
1055
+
1056
+
1057
+
1058
+
1059
+ /**
1060
+ * Fields of the LicenseKey model
1061
+ */
1062
+ export interface LicenseKeyFieldRefs {
1063
+ readonly id: Prisma.FieldRef<"LicenseKey", 'String'>
1064
+ readonly key: Prisma.FieldRef<"LicenseKey", 'String'>
1065
+ readonly signature: Prisma.FieldRef<"LicenseKey", 'String'>
1066
+ readonly payload: Prisma.FieldRef<"LicenseKey", 'String'>
1067
+ readonly customerId: Prisma.FieldRef<"LicenseKey", 'String'>
1068
+ readonly customerName: Prisma.FieldRef<"LicenseKey", 'String'>
1069
+ readonly customerEmail: Prisma.FieldRef<"LicenseKey", 'String'>
1070
+ readonly plan: Prisma.FieldRef<"LicenseKey", 'String'>
1071
+ readonly seats: Prisma.FieldRef<"LicenseKey", 'Int'>
1072
+ readonly features: Prisma.FieldRef<"LicenseKey", 'String'>
1073
+ readonly issuedAt: Prisma.FieldRef<"LicenseKey", 'DateTime'>
1074
+ readonly expiresAt: Prisma.FieldRef<"LicenseKey", 'DateTime'>
1075
+ readonly revokedAt: Prisma.FieldRef<"LicenseKey", 'DateTime'>
1076
+ readonly issuedById: Prisma.FieldRef<"LicenseKey", 'String'>
1077
+ }
1078
+
1079
+
1080
+ // Custom InputTypes
1081
+ /**
1082
+ * LicenseKey findUnique
1083
+ */
1084
+ export type LicenseKeyFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1085
+ /**
1086
+ * Select specific fields to fetch from the LicenseKey
1087
+ */
1088
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1089
+ /**
1090
+ * Omit specific fields from the LicenseKey
1091
+ */
1092
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1093
+ /**
1094
+ * Filter, which LicenseKey to fetch.
1095
+ */
1096
+ where: Prisma.LicenseKeyWhereUniqueInput
1097
+ }
1098
+
1099
+ /**
1100
+ * LicenseKey findUniqueOrThrow
1101
+ */
1102
+ export type LicenseKeyFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ /**
1104
+ * Select specific fields to fetch from the LicenseKey
1105
+ */
1106
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1107
+ /**
1108
+ * Omit specific fields from the LicenseKey
1109
+ */
1110
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1111
+ /**
1112
+ * Filter, which LicenseKey to fetch.
1113
+ */
1114
+ where: Prisma.LicenseKeyWhereUniqueInput
1115
+ }
1116
+
1117
+ /**
1118
+ * LicenseKey findFirst
1119
+ */
1120
+ export type LicenseKeyFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1121
+ /**
1122
+ * Select specific fields to fetch from the LicenseKey
1123
+ */
1124
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1125
+ /**
1126
+ * Omit specific fields from the LicenseKey
1127
+ */
1128
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1129
+ /**
1130
+ * Filter, which LicenseKey to fetch.
1131
+ */
1132
+ where?: Prisma.LicenseKeyWhereInput
1133
+ /**
1134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1135
+ *
1136
+ * Determine the order of LicenseKeys to fetch.
1137
+ */
1138
+ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
1139
+ /**
1140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1141
+ *
1142
+ * Sets the position for searching for LicenseKeys.
1143
+ */
1144
+ cursor?: Prisma.LicenseKeyWhereUniqueInput
1145
+ /**
1146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1147
+ *
1148
+ * Take `±n` LicenseKeys from the position of the cursor.
1149
+ */
1150
+ take?: number
1151
+ /**
1152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1153
+ *
1154
+ * Skip the first `n` LicenseKeys.
1155
+ */
1156
+ skip?: number
1157
+ /**
1158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1159
+ *
1160
+ * Filter by unique combinations of LicenseKeys.
1161
+ */
1162
+ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
1163
+ }
1164
+
1165
+ /**
1166
+ * LicenseKey findFirstOrThrow
1167
+ */
1168
+ export type LicenseKeyFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * Select specific fields to fetch from the LicenseKey
1171
+ */
1172
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1173
+ /**
1174
+ * Omit specific fields from the LicenseKey
1175
+ */
1176
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1177
+ /**
1178
+ * Filter, which LicenseKey to fetch.
1179
+ */
1180
+ where?: Prisma.LicenseKeyWhereInput
1181
+ /**
1182
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1183
+ *
1184
+ * Determine the order of LicenseKeys to fetch.
1185
+ */
1186
+ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
1187
+ /**
1188
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1189
+ *
1190
+ * Sets the position for searching for LicenseKeys.
1191
+ */
1192
+ cursor?: Prisma.LicenseKeyWhereUniqueInput
1193
+ /**
1194
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1195
+ *
1196
+ * Take `±n` LicenseKeys from the position of the cursor.
1197
+ */
1198
+ take?: number
1199
+ /**
1200
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1201
+ *
1202
+ * Skip the first `n` LicenseKeys.
1203
+ */
1204
+ skip?: number
1205
+ /**
1206
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1207
+ *
1208
+ * Filter by unique combinations of LicenseKeys.
1209
+ */
1210
+ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
1211
+ }
1212
+
1213
+ /**
1214
+ * LicenseKey findMany
1215
+ */
1216
+ export type LicenseKeyFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1217
+ /**
1218
+ * Select specific fields to fetch from the LicenseKey
1219
+ */
1220
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1221
+ /**
1222
+ * Omit specific fields from the LicenseKey
1223
+ */
1224
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1225
+ /**
1226
+ * Filter, which LicenseKeys to fetch.
1227
+ */
1228
+ where?: Prisma.LicenseKeyWhereInput
1229
+ /**
1230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1231
+ *
1232
+ * Determine the order of LicenseKeys to fetch.
1233
+ */
1234
+ orderBy?: Prisma.LicenseKeyOrderByWithRelationInput | Prisma.LicenseKeyOrderByWithRelationInput[]
1235
+ /**
1236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1237
+ *
1238
+ * Sets the position for listing LicenseKeys.
1239
+ */
1240
+ cursor?: Prisma.LicenseKeyWhereUniqueInput
1241
+ /**
1242
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1243
+ *
1244
+ * Take `±n` LicenseKeys from the position of the cursor.
1245
+ */
1246
+ take?: number
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1249
+ *
1250
+ * Skip the first `n` LicenseKeys.
1251
+ */
1252
+ skip?: number
1253
+ /**
1254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1255
+ *
1256
+ * Filter by unique combinations of LicenseKeys.
1257
+ */
1258
+ distinct?: Prisma.LicenseKeyScalarFieldEnum | Prisma.LicenseKeyScalarFieldEnum[]
1259
+ }
1260
+
1261
+ /**
1262
+ * LicenseKey create
1263
+ */
1264
+ export type LicenseKeyCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1265
+ /**
1266
+ * Select specific fields to fetch from the LicenseKey
1267
+ */
1268
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1269
+ /**
1270
+ * Omit specific fields from the LicenseKey
1271
+ */
1272
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1273
+ /**
1274
+ * The data needed to create a LicenseKey.
1275
+ */
1276
+ data: Prisma.XOR<Prisma.LicenseKeyCreateInput, Prisma.LicenseKeyUncheckedCreateInput>
1277
+ }
1278
+
1279
+ /**
1280
+ * LicenseKey createMany
1281
+ */
1282
+ export type LicenseKeyCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1283
+ /**
1284
+ * The data used to create many LicenseKeys.
1285
+ */
1286
+ data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[]
1287
+ }
1288
+
1289
+ /**
1290
+ * LicenseKey createManyAndReturn
1291
+ */
1292
+ export type LicenseKeyCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Select specific fields to fetch from the LicenseKey
1295
+ */
1296
+ select?: Prisma.LicenseKeySelectCreateManyAndReturn<ExtArgs> | null
1297
+ /**
1298
+ * Omit specific fields from the LicenseKey
1299
+ */
1300
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1301
+ /**
1302
+ * The data used to create many LicenseKeys.
1303
+ */
1304
+ data: Prisma.LicenseKeyCreateManyInput | Prisma.LicenseKeyCreateManyInput[]
1305
+ }
1306
+
1307
+ /**
1308
+ * LicenseKey update
1309
+ */
1310
+ export type LicenseKeyUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1311
+ /**
1312
+ * Select specific fields to fetch from the LicenseKey
1313
+ */
1314
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1315
+ /**
1316
+ * Omit specific fields from the LicenseKey
1317
+ */
1318
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1319
+ /**
1320
+ * The data needed to update a LicenseKey.
1321
+ */
1322
+ data: Prisma.XOR<Prisma.LicenseKeyUpdateInput, Prisma.LicenseKeyUncheckedUpdateInput>
1323
+ /**
1324
+ * Choose, which LicenseKey to update.
1325
+ */
1326
+ where: Prisma.LicenseKeyWhereUniqueInput
1327
+ }
1328
+
1329
+ /**
1330
+ * LicenseKey updateMany
1331
+ */
1332
+ export type LicenseKeyUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1333
+ /**
1334
+ * The data used to update LicenseKeys.
1335
+ */
1336
+ data: Prisma.XOR<Prisma.LicenseKeyUpdateManyMutationInput, Prisma.LicenseKeyUncheckedUpdateManyInput>
1337
+ /**
1338
+ * Filter which LicenseKeys to update
1339
+ */
1340
+ where?: Prisma.LicenseKeyWhereInput
1341
+ /**
1342
+ * Limit how many LicenseKeys to update.
1343
+ */
1344
+ limit?: number
1345
+ }
1346
+
1347
+ /**
1348
+ * LicenseKey updateManyAndReturn
1349
+ */
1350
+ export type LicenseKeyUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1351
+ /**
1352
+ * Select specific fields to fetch from the LicenseKey
1353
+ */
1354
+ select?: Prisma.LicenseKeySelectUpdateManyAndReturn<ExtArgs> | null
1355
+ /**
1356
+ * Omit specific fields from the LicenseKey
1357
+ */
1358
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1359
+ /**
1360
+ * The data used to update LicenseKeys.
1361
+ */
1362
+ data: Prisma.XOR<Prisma.LicenseKeyUpdateManyMutationInput, Prisma.LicenseKeyUncheckedUpdateManyInput>
1363
+ /**
1364
+ * Filter which LicenseKeys to update
1365
+ */
1366
+ where?: Prisma.LicenseKeyWhereInput
1367
+ /**
1368
+ * Limit how many LicenseKeys to update.
1369
+ */
1370
+ limit?: number
1371
+ }
1372
+
1373
+ /**
1374
+ * LicenseKey upsert
1375
+ */
1376
+ export type LicenseKeyUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1377
+ /**
1378
+ * Select specific fields to fetch from the LicenseKey
1379
+ */
1380
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1381
+ /**
1382
+ * Omit specific fields from the LicenseKey
1383
+ */
1384
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1385
+ /**
1386
+ * The filter to search for the LicenseKey to update in case it exists.
1387
+ */
1388
+ where: Prisma.LicenseKeyWhereUniqueInput
1389
+ /**
1390
+ * In case the LicenseKey found by the `where` argument doesn't exist, create a new LicenseKey with this data.
1391
+ */
1392
+ create: Prisma.XOR<Prisma.LicenseKeyCreateInput, Prisma.LicenseKeyUncheckedCreateInput>
1393
+ /**
1394
+ * In case the LicenseKey was found with the provided `where` argument, update it with this data.
1395
+ */
1396
+ update: Prisma.XOR<Prisma.LicenseKeyUpdateInput, Prisma.LicenseKeyUncheckedUpdateInput>
1397
+ }
1398
+
1399
+ /**
1400
+ * LicenseKey delete
1401
+ */
1402
+ export type LicenseKeyDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1403
+ /**
1404
+ * Select specific fields to fetch from the LicenseKey
1405
+ */
1406
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1407
+ /**
1408
+ * Omit specific fields from the LicenseKey
1409
+ */
1410
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1411
+ /**
1412
+ * Filter which LicenseKey to delete.
1413
+ */
1414
+ where: Prisma.LicenseKeyWhereUniqueInput
1415
+ }
1416
+
1417
+ /**
1418
+ * LicenseKey deleteMany
1419
+ */
1420
+ export type LicenseKeyDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1421
+ /**
1422
+ * Filter which LicenseKeys to delete
1423
+ */
1424
+ where?: Prisma.LicenseKeyWhereInput
1425
+ /**
1426
+ * Limit how many LicenseKeys to delete.
1427
+ */
1428
+ limit?: number
1429
+ }
1430
+
1431
+ /**
1432
+ * LicenseKey without action
1433
+ */
1434
+ export type LicenseKeyDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1435
+ /**
1436
+ * Select specific fields to fetch from the LicenseKey
1437
+ */
1438
+ select?: Prisma.LicenseKeySelect<ExtArgs> | null
1439
+ /**
1440
+ * Omit specific fields from the LicenseKey
1441
+ */
1442
+ omit?: Prisma.LicenseKeyOmit<ExtArgs> | null
1443
+ }