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