@allbluecn/database 0.3.14 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,2147 @@
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 `Subscription` 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 Subscription
17
+ * 订阅记录(User 级,一人一订阅)
18
+ */
19
+ export type SubscriptionModel = runtime.Types.Result.DefaultSelection<Prisma.$SubscriptionPayload>
20
+
21
+ export type AggregateSubscription = {
22
+ _count: SubscriptionCountAggregateOutputType | null
23
+ _avg: SubscriptionAvgAggregateOutputType | null
24
+ _sum: SubscriptionSumAggregateOutputType | null
25
+ _min: SubscriptionMinAggregateOutputType | null
26
+ _max: SubscriptionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SubscriptionAvgAggregateOutputType = {
30
+ addonSeats: number | null
31
+ }
32
+
33
+ export type SubscriptionSumAggregateOutputType = {
34
+ addonSeats: number | null
35
+ }
36
+
37
+ export type SubscriptionMinAggregateOutputType = {
38
+ id: string | null
39
+ userId: string | null
40
+ planId: string | null
41
+ status: $Enums.SubscriptionStatus | null
42
+ addonSeats: number | null
43
+ provider: string | null
44
+ providerCustomerId: string | null
45
+ providerSubscriptionId: string | null
46
+ providerPriceId: string | null
47
+ providerSeatSubscriptionId: string | null
48
+ currentPeriodStart: Date | null
49
+ currentPeriodEnd: Date | null
50
+ cancelAtPeriodEnd: boolean | null
51
+ canceledAt: Date | null
52
+ trialEndsAt: Date | null
53
+ createdAt: Date | null
54
+ updatedAt: Date | null
55
+ }
56
+
57
+ export type SubscriptionMaxAggregateOutputType = {
58
+ id: string | null
59
+ userId: string | null
60
+ planId: string | null
61
+ status: $Enums.SubscriptionStatus | null
62
+ addonSeats: number | null
63
+ provider: string | null
64
+ providerCustomerId: string | null
65
+ providerSubscriptionId: string | null
66
+ providerPriceId: string | null
67
+ providerSeatSubscriptionId: string | null
68
+ currentPeriodStart: Date | null
69
+ currentPeriodEnd: Date | null
70
+ cancelAtPeriodEnd: boolean | null
71
+ canceledAt: Date | null
72
+ trialEndsAt: Date | null
73
+ createdAt: Date | null
74
+ updatedAt: Date | null
75
+ }
76
+
77
+ export type SubscriptionCountAggregateOutputType = {
78
+ id: number
79
+ userId: number
80
+ planId: number
81
+ status: number
82
+ addonSeats: number
83
+ provider: number
84
+ providerCustomerId: number
85
+ providerSubscriptionId: number
86
+ providerPriceId: number
87
+ providerSeatSubscriptionId: number
88
+ currentPeriodStart: number
89
+ currentPeriodEnd: number
90
+ cancelAtPeriodEnd: number
91
+ canceledAt: number
92
+ trialEndsAt: number
93
+ createdAt: number
94
+ updatedAt: number
95
+ _all: number
96
+ }
97
+
98
+
99
+ export type SubscriptionAvgAggregateInputType = {
100
+ addonSeats?: true
101
+ }
102
+
103
+ export type SubscriptionSumAggregateInputType = {
104
+ addonSeats?: true
105
+ }
106
+
107
+ export type SubscriptionMinAggregateInputType = {
108
+ id?: true
109
+ userId?: true
110
+ planId?: true
111
+ status?: true
112
+ addonSeats?: true
113
+ provider?: true
114
+ providerCustomerId?: true
115
+ providerSubscriptionId?: true
116
+ providerPriceId?: true
117
+ providerSeatSubscriptionId?: true
118
+ currentPeriodStart?: true
119
+ currentPeriodEnd?: true
120
+ cancelAtPeriodEnd?: true
121
+ canceledAt?: true
122
+ trialEndsAt?: true
123
+ createdAt?: true
124
+ updatedAt?: true
125
+ }
126
+
127
+ export type SubscriptionMaxAggregateInputType = {
128
+ id?: true
129
+ userId?: true
130
+ planId?: true
131
+ status?: true
132
+ addonSeats?: true
133
+ provider?: true
134
+ providerCustomerId?: true
135
+ providerSubscriptionId?: true
136
+ providerPriceId?: true
137
+ providerSeatSubscriptionId?: true
138
+ currentPeriodStart?: true
139
+ currentPeriodEnd?: true
140
+ cancelAtPeriodEnd?: true
141
+ canceledAt?: true
142
+ trialEndsAt?: true
143
+ createdAt?: true
144
+ updatedAt?: true
145
+ }
146
+
147
+ export type SubscriptionCountAggregateInputType = {
148
+ id?: true
149
+ userId?: true
150
+ planId?: true
151
+ status?: true
152
+ addonSeats?: true
153
+ provider?: true
154
+ providerCustomerId?: true
155
+ providerSubscriptionId?: true
156
+ providerPriceId?: true
157
+ providerSeatSubscriptionId?: true
158
+ currentPeriodStart?: true
159
+ currentPeriodEnd?: true
160
+ cancelAtPeriodEnd?: true
161
+ canceledAt?: true
162
+ trialEndsAt?: true
163
+ createdAt?: true
164
+ updatedAt?: true
165
+ _all?: true
166
+ }
167
+
168
+ export type SubscriptionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ /**
170
+ * Filter which Subscription to aggregate.
171
+ */
172
+ where?: Prisma.SubscriptionWhereInput
173
+ /**
174
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
175
+ *
176
+ * Determine the order of Subscriptions to fetch.
177
+ */
178
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
179
+ /**
180
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
181
+ *
182
+ * Sets the start position
183
+ */
184
+ cursor?: Prisma.SubscriptionWhereUniqueInput
185
+ /**
186
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
187
+ *
188
+ * Take `±n` Subscriptions from the position of the cursor.
189
+ */
190
+ take?: number
191
+ /**
192
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
193
+ *
194
+ * Skip the first `n` Subscriptions.
195
+ */
196
+ skip?: number
197
+ /**
198
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
199
+ *
200
+ * Count returned Subscriptions
201
+ **/
202
+ _count?: true | SubscriptionCountAggregateInputType
203
+ /**
204
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
205
+ *
206
+ * Select which fields to average
207
+ **/
208
+ _avg?: SubscriptionAvgAggregateInputType
209
+ /**
210
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
211
+ *
212
+ * Select which fields to sum
213
+ **/
214
+ _sum?: SubscriptionSumAggregateInputType
215
+ /**
216
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
217
+ *
218
+ * Select which fields to find the minimum value
219
+ **/
220
+ _min?: SubscriptionMinAggregateInputType
221
+ /**
222
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
223
+ *
224
+ * Select which fields to find the maximum value
225
+ **/
226
+ _max?: SubscriptionMaxAggregateInputType
227
+ }
228
+
229
+ export type GetSubscriptionAggregateType<T extends SubscriptionAggregateArgs> = {
230
+ [P in keyof T & keyof AggregateSubscription]: P extends '_count' | 'count'
231
+ ? T[P] extends true
232
+ ? number
233
+ : Prisma.GetScalarType<T[P], AggregateSubscription[P]>
234
+ : Prisma.GetScalarType<T[P], AggregateSubscription[P]>
235
+ }
236
+
237
+
238
+
239
+
240
+ export type SubscriptionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
241
+ where?: Prisma.SubscriptionWhereInput
242
+ orderBy?: Prisma.SubscriptionOrderByWithAggregationInput | Prisma.SubscriptionOrderByWithAggregationInput[]
243
+ by: Prisma.SubscriptionScalarFieldEnum[] | Prisma.SubscriptionScalarFieldEnum
244
+ having?: Prisma.SubscriptionScalarWhereWithAggregatesInput
245
+ take?: number
246
+ skip?: number
247
+ _count?: SubscriptionCountAggregateInputType | true
248
+ _avg?: SubscriptionAvgAggregateInputType
249
+ _sum?: SubscriptionSumAggregateInputType
250
+ _min?: SubscriptionMinAggregateInputType
251
+ _max?: SubscriptionMaxAggregateInputType
252
+ }
253
+
254
+ export type SubscriptionGroupByOutputType = {
255
+ id: string
256
+ userId: string
257
+ planId: string
258
+ status: $Enums.SubscriptionStatus
259
+ addonSeats: number
260
+ provider: string
261
+ providerCustomerId: string | null
262
+ providerSubscriptionId: string | null
263
+ providerPriceId: string | null
264
+ providerSeatSubscriptionId: string | null
265
+ currentPeriodStart: Date | null
266
+ currentPeriodEnd: Date | null
267
+ cancelAtPeriodEnd: boolean
268
+ canceledAt: Date | null
269
+ trialEndsAt: Date | null
270
+ createdAt: Date
271
+ updatedAt: Date
272
+ _count: SubscriptionCountAggregateOutputType | null
273
+ _avg: SubscriptionAvgAggregateOutputType | null
274
+ _sum: SubscriptionSumAggregateOutputType | null
275
+ _min: SubscriptionMinAggregateOutputType | null
276
+ _max: SubscriptionMaxAggregateOutputType | null
277
+ }
278
+
279
+ export type GetSubscriptionGroupByPayload<T extends SubscriptionGroupByArgs> = Prisma.PrismaPromise<
280
+ Array<
281
+ Prisma.PickEnumerable<SubscriptionGroupByOutputType, T['by']> &
282
+ {
283
+ [P in ((keyof T) & (keyof SubscriptionGroupByOutputType))]: P extends '_count'
284
+ ? T[P] extends boolean
285
+ ? number
286
+ : Prisma.GetScalarType<T[P], SubscriptionGroupByOutputType[P]>
287
+ : Prisma.GetScalarType<T[P], SubscriptionGroupByOutputType[P]>
288
+ }
289
+ >
290
+ >
291
+
292
+
293
+
294
+ export type SubscriptionWhereInput = {
295
+ AND?: Prisma.SubscriptionWhereInput | Prisma.SubscriptionWhereInput[]
296
+ OR?: Prisma.SubscriptionWhereInput[]
297
+ NOT?: Prisma.SubscriptionWhereInput | Prisma.SubscriptionWhereInput[]
298
+ id?: Prisma.StringFilter<"Subscription"> | string
299
+ userId?: Prisma.StringFilter<"Subscription"> | string
300
+ planId?: Prisma.StringFilter<"Subscription"> | string
301
+ status?: Prisma.EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus
302
+ addonSeats?: Prisma.IntFilter<"Subscription"> | number
303
+ provider?: Prisma.StringFilter<"Subscription"> | string
304
+ providerCustomerId?: Prisma.StringNullableFilter<"Subscription"> | string | null
305
+ providerSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
306
+ providerPriceId?: Prisma.StringNullableFilter<"Subscription"> | string | null
307
+ providerSeatSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
308
+ currentPeriodStart?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
309
+ currentPeriodEnd?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
310
+ cancelAtPeriodEnd?: Prisma.BoolFilter<"Subscription"> | boolean
311
+ canceledAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
312
+ trialEndsAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
313
+ createdAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
314
+ updatedAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
315
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
316
+ plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>
317
+ invoices?: Prisma.InvoiceListRelationFilter
318
+ }
319
+
320
+ export type SubscriptionOrderByWithRelationInput = {
321
+ id?: Prisma.SortOrder
322
+ userId?: Prisma.SortOrder
323
+ planId?: Prisma.SortOrder
324
+ status?: Prisma.SortOrder
325
+ addonSeats?: Prisma.SortOrder
326
+ provider?: Prisma.SortOrder
327
+ providerCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder
328
+ providerSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
329
+ providerPriceId?: Prisma.SortOrderInput | Prisma.SortOrder
330
+ providerSeatSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
331
+ currentPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder
332
+ currentPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder
333
+ cancelAtPeriodEnd?: Prisma.SortOrder
334
+ canceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
335
+ trialEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder
336
+ createdAt?: Prisma.SortOrder
337
+ updatedAt?: Prisma.SortOrder
338
+ user?: Prisma.UserOrderByWithRelationInput
339
+ plan?: Prisma.PlanOrderByWithRelationInput
340
+ invoices?: Prisma.InvoiceOrderByRelationAggregateInput
341
+ }
342
+
343
+ export type SubscriptionWhereUniqueInput = Prisma.AtLeast<{
344
+ id?: string
345
+ userId?: string
346
+ providerSubscriptionId?: string
347
+ AND?: Prisma.SubscriptionWhereInput | Prisma.SubscriptionWhereInput[]
348
+ OR?: Prisma.SubscriptionWhereInput[]
349
+ NOT?: Prisma.SubscriptionWhereInput | Prisma.SubscriptionWhereInput[]
350
+ planId?: Prisma.StringFilter<"Subscription"> | string
351
+ status?: Prisma.EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus
352
+ addonSeats?: Prisma.IntFilter<"Subscription"> | number
353
+ provider?: Prisma.StringFilter<"Subscription"> | string
354
+ providerCustomerId?: Prisma.StringNullableFilter<"Subscription"> | string | null
355
+ providerPriceId?: Prisma.StringNullableFilter<"Subscription"> | string | null
356
+ providerSeatSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
357
+ currentPeriodStart?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
358
+ currentPeriodEnd?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
359
+ cancelAtPeriodEnd?: Prisma.BoolFilter<"Subscription"> | boolean
360
+ canceledAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
361
+ trialEndsAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
362
+ createdAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
363
+ updatedAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
364
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
365
+ plan?: Prisma.XOR<Prisma.PlanScalarRelationFilter, Prisma.PlanWhereInput>
366
+ invoices?: Prisma.InvoiceListRelationFilter
367
+ }, "id" | "userId" | "providerSubscriptionId">
368
+
369
+ export type SubscriptionOrderByWithAggregationInput = {
370
+ id?: Prisma.SortOrder
371
+ userId?: Prisma.SortOrder
372
+ planId?: Prisma.SortOrder
373
+ status?: Prisma.SortOrder
374
+ addonSeats?: Prisma.SortOrder
375
+ provider?: Prisma.SortOrder
376
+ providerCustomerId?: Prisma.SortOrderInput | Prisma.SortOrder
377
+ providerSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
378
+ providerPriceId?: Prisma.SortOrderInput | Prisma.SortOrder
379
+ providerSeatSubscriptionId?: Prisma.SortOrderInput | Prisma.SortOrder
380
+ currentPeriodStart?: Prisma.SortOrderInput | Prisma.SortOrder
381
+ currentPeriodEnd?: Prisma.SortOrderInput | Prisma.SortOrder
382
+ cancelAtPeriodEnd?: Prisma.SortOrder
383
+ canceledAt?: Prisma.SortOrderInput | Prisma.SortOrder
384
+ trialEndsAt?: Prisma.SortOrderInput | Prisma.SortOrder
385
+ createdAt?: Prisma.SortOrder
386
+ updatedAt?: Prisma.SortOrder
387
+ _count?: Prisma.SubscriptionCountOrderByAggregateInput
388
+ _avg?: Prisma.SubscriptionAvgOrderByAggregateInput
389
+ _max?: Prisma.SubscriptionMaxOrderByAggregateInput
390
+ _min?: Prisma.SubscriptionMinOrderByAggregateInput
391
+ _sum?: Prisma.SubscriptionSumOrderByAggregateInput
392
+ }
393
+
394
+ export type SubscriptionScalarWhereWithAggregatesInput = {
395
+ AND?: Prisma.SubscriptionScalarWhereWithAggregatesInput | Prisma.SubscriptionScalarWhereWithAggregatesInput[]
396
+ OR?: Prisma.SubscriptionScalarWhereWithAggregatesInput[]
397
+ NOT?: Prisma.SubscriptionScalarWhereWithAggregatesInput | Prisma.SubscriptionScalarWhereWithAggregatesInput[]
398
+ id?: Prisma.StringWithAggregatesFilter<"Subscription"> | string
399
+ userId?: Prisma.StringWithAggregatesFilter<"Subscription"> | string
400
+ planId?: Prisma.StringWithAggregatesFilter<"Subscription"> | string
401
+ status?: Prisma.EnumSubscriptionStatusWithAggregatesFilter<"Subscription"> | $Enums.SubscriptionStatus
402
+ addonSeats?: Prisma.IntWithAggregatesFilter<"Subscription"> | number
403
+ provider?: Prisma.StringWithAggregatesFilter<"Subscription"> | string
404
+ providerCustomerId?: Prisma.StringNullableWithAggregatesFilter<"Subscription"> | string | null
405
+ providerSubscriptionId?: Prisma.StringNullableWithAggregatesFilter<"Subscription"> | string | null
406
+ providerPriceId?: Prisma.StringNullableWithAggregatesFilter<"Subscription"> | string | null
407
+ providerSeatSubscriptionId?: Prisma.StringNullableWithAggregatesFilter<"Subscription"> | string | null
408
+ currentPeriodStart?: Prisma.DateTimeNullableWithAggregatesFilter<"Subscription"> | Date | string | null
409
+ currentPeriodEnd?: Prisma.DateTimeNullableWithAggregatesFilter<"Subscription"> | Date | string | null
410
+ cancelAtPeriodEnd?: Prisma.BoolWithAggregatesFilter<"Subscription"> | boolean
411
+ canceledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Subscription"> | Date | string | null
412
+ trialEndsAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Subscription"> | Date | string | null
413
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Subscription"> | Date | string
414
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Subscription"> | Date | string
415
+ }
416
+
417
+ export type SubscriptionCreateInput = {
418
+ id?: string
419
+ status?: $Enums.SubscriptionStatus
420
+ addonSeats?: number
421
+ provider?: string
422
+ providerCustomerId?: string | null
423
+ providerSubscriptionId?: string | null
424
+ providerPriceId?: string | null
425
+ providerSeatSubscriptionId?: string | null
426
+ currentPeriodStart?: Date | string | null
427
+ currentPeriodEnd?: Date | string | null
428
+ cancelAtPeriodEnd?: boolean
429
+ canceledAt?: Date | string | null
430
+ trialEndsAt?: Date | string | null
431
+ createdAt?: Date | string
432
+ updatedAt?: Date | string
433
+ user: Prisma.UserCreateNestedOneWithoutSubscriptionInput
434
+ plan: Prisma.PlanCreateNestedOneWithoutSubscriptionsInput
435
+ invoices?: Prisma.InvoiceCreateNestedManyWithoutSubscriptionInput
436
+ }
437
+
438
+ export type SubscriptionUncheckedCreateInput = {
439
+ id?: string
440
+ userId: string
441
+ planId: string
442
+ status?: $Enums.SubscriptionStatus
443
+ addonSeats?: number
444
+ provider?: string
445
+ providerCustomerId?: string | null
446
+ providerSubscriptionId?: string | null
447
+ providerPriceId?: string | null
448
+ providerSeatSubscriptionId?: string | null
449
+ currentPeriodStart?: Date | string | null
450
+ currentPeriodEnd?: Date | string | null
451
+ cancelAtPeriodEnd?: boolean
452
+ canceledAt?: Date | string | null
453
+ trialEndsAt?: Date | string | null
454
+ createdAt?: Date | string
455
+ updatedAt?: Date | string
456
+ invoices?: Prisma.InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput
457
+ }
458
+
459
+ export type SubscriptionUpdateInput = {
460
+ id?: Prisma.StringFieldUpdateOperationsInput | string
461
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
462
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
463
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
464
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
465
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
466
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
467
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
468
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
469
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
470
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
471
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
472
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
473
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
474
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
475
+ user?: Prisma.UserUpdateOneRequiredWithoutSubscriptionNestedInput
476
+ plan?: Prisma.PlanUpdateOneRequiredWithoutSubscriptionsNestedInput
477
+ invoices?: Prisma.InvoiceUpdateManyWithoutSubscriptionNestedInput
478
+ }
479
+
480
+ export type SubscriptionUncheckedUpdateInput = {
481
+ id?: Prisma.StringFieldUpdateOperationsInput | string
482
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
483
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
484
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
485
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
486
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
487
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
488
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
489
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
490
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
491
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
492
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
493
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
494
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
495
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
496
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
497
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
498
+ invoices?: Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput
499
+ }
500
+
501
+ export type SubscriptionCreateManyInput = {
502
+ id?: string
503
+ userId: string
504
+ planId: string
505
+ status?: $Enums.SubscriptionStatus
506
+ addonSeats?: number
507
+ provider?: string
508
+ providerCustomerId?: string | null
509
+ providerSubscriptionId?: string | null
510
+ providerPriceId?: string | null
511
+ providerSeatSubscriptionId?: string | null
512
+ currentPeriodStart?: Date | string | null
513
+ currentPeriodEnd?: Date | string | null
514
+ cancelAtPeriodEnd?: boolean
515
+ canceledAt?: Date | string | null
516
+ trialEndsAt?: Date | string | null
517
+ createdAt?: Date | string
518
+ updatedAt?: Date | string
519
+ }
520
+
521
+ export type SubscriptionUpdateManyMutationInput = {
522
+ id?: Prisma.StringFieldUpdateOperationsInput | string
523
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
524
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
525
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
526
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
527
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
528
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
529
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
530
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
531
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
532
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
533
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
534
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
535
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
536
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
537
+ }
538
+
539
+ export type SubscriptionUncheckedUpdateManyInput = {
540
+ id?: Prisma.StringFieldUpdateOperationsInput | string
541
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
542
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
543
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
544
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
545
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
546
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
547
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
548
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
549
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
550
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
551
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
552
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
553
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
554
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
555
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
556
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
557
+ }
558
+
559
+ export type SubscriptionNullableScalarRelationFilter = {
560
+ is?: Prisma.SubscriptionWhereInput | null
561
+ isNot?: Prisma.SubscriptionWhereInput | null
562
+ }
563
+
564
+ export type SubscriptionListRelationFilter = {
565
+ every?: Prisma.SubscriptionWhereInput
566
+ some?: Prisma.SubscriptionWhereInput
567
+ none?: Prisma.SubscriptionWhereInput
568
+ }
569
+
570
+ export type SubscriptionOrderByRelationAggregateInput = {
571
+ _count?: Prisma.SortOrder
572
+ }
573
+
574
+ export type SubscriptionCountOrderByAggregateInput = {
575
+ id?: Prisma.SortOrder
576
+ userId?: Prisma.SortOrder
577
+ planId?: Prisma.SortOrder
578
+ status?: Prisma.SortOrder
579
+ addonSeats?: Prisma.SortOrder
580
+ provider?: Prisma.SortOrder
581
+ providerCustomerId?: Prisma.SortOrder
582
+ providerSubscriptionId?: Prisma.SortOrder
583
+ providerPriceId?: Prisma.SortOrder
584
+ providerSeatSubscriptionId?: Prisma.SortOrder
585
+ currentPeriodStart?: Prisma.SortOrder
586
+ currentPeriodEnd?: Prisma.SortOrder
587
+ cancelAtPeriodEnd?: Prisma.SortOrder
588
+ canceledAt?: Prisma.SortOrder
589
+ trialEndsAt?: Prisma.SortOrder
590
+ createdAt?: Prisma.SortOrder
591
+ updatedAt?: Prisma.SortOrder
592
+ }
593
+
594
+ export type SubscriptionAvgOrderByAggregateInput = {
595
+ addonSeats?: Prisma.SortOrder
596
+ }
597
+
598
+ export type SubscriptionMaxOrderByAggregateInput = {
599
+ id?: Prisma.SortOrder
600
+ userId?: Prisma.SortOrder
601
+ planId?: Prisma.SortOrder
602
+ status?: Prisma.SortOrder
603
+ addonSeats?: Prisma.SortOrder
604
+ provider?: Prisma.SortOrder
605
+ providerCustomerId?: Prisma.SortOrder
606
+ providerSubscriptionId?: Prisma.SortOrder
607
+ providerPriceId?: Prisma.SortOrder
608
+ providerSeatSubscriptionId?: Prisma.SortOrder
609
+ currentPeriodStart?: Prisma.SortOrder
610
+ currentPeriodEnd?: Prisma.SortOrder
611
+ cancelAtPeriodEnd?: Prisma.SortOrder
612
+ canceledAt?: Prisma.SortOrder
613
+ trialEndsAt?: Prisma.SortOrder
614
+ createdAt?: Prisma.SortOrder
615
+ updatedAt?: Prisma.SortOrder
616
+ }
617
+
618
+ export type SubscriptionMinOrderByAggregateInput = {
619
+ id?: Prisma.SortOrder
620
+ userId?: Prisma.SortOrder
621
+ planId?: Prisma.SortOrder
622
+ status?: Prisma.SortOrder
623
+ addonSeats?: Prisma.SortOrder
624
+ provider?: Prisma.SortOrder
625
+ providerCustomerId?: Prisma.SortOrder
626
+ providerSubscriptionId?: Prisma.SortOrder
627
+ providerPriceId?: Prisma.SortOrder
628
+ providerSeatSubscriptionId?: Prisma.SortOrder
629
+ currentPeriodStart?: Prisma.SortOrder
630
+ currentPeriodEnd?: Prisma.SortOrder
631
+ cancelAtPeriodEnd?: Prisma.SortOrder
632
+ canceledAt?: Prisma.SortOrder
633
+ trialEndsAt?: Prisma.SortOrder
634
+ createdAt?: Prisma.SortOrder
635
+ updatedAt?: Prisma.SortOrder
636
+ }
637
+
638
+ export type SubscriptionSumOrderByAggregateInput = {
639
+ addonSeats?: Prisma.SortOrder
640
+ }
641
+
642
+ export type SubscriptionScalarRelationFilter = {
643
+ is?: Prisma.SubscriptionWhereInput
644
+ isNot?: Prisma.SubscriptionWhereInput
645
+ }
646
+
647
+ export type SubscriptionCreateNestedOneWithoutUserInput = {
648
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
649
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutUserInput
650
+ connect?: Prisma.SubscriptionWhereUniqueInput
651
+ }
652
+
653
+ export type SubscriptionUncheckedCreateNestedOneWithoutUserInput = {
654
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
655
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutUserInput
656
+ connect?: Prisma.SubscriptionWhereUniqueInput
657
+ }
658
+
659
+ export type SubscriptionUpdateOneWithoutUserNestedInput = {
660
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
661
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutUserInput
662
+ upsert?: Prisma.SubscriptionUpsertWithoutUserInput
663
+ disconnect?: Prisma.SubscriptionWhereInput | boolean
664
+ delete?: Prisma.SubscriptionWhereInput | boolean
665
+ connect?: Prisma.SubscriptionWhereUniqueInput
666
+ update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUpdateToOneWithWhereWithoutUserInput, Prisma.SubscriptionUpdateWithoutUserInput>, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
667
+ }
668
+
669
+ export type SubscriptionUncheckedUpdateOneWithoutUserNestedInput = {
670
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
671
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutUserInput
672
+ upsert?: Prisma.SubscriptionUpsertWithoutUserInput
673
+ disconnect?: Prisma.SubscriptionWhereInput | boolean
674
+ delete?: Prisma.SubscriptionWhereInput | boolean
675
+ connect?: Prisma.SubscriptionWhereUniqueInput
676
+ update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUpdateToOneWithWhereWithoutUserInput, Prisma.SubscriptionUpdateWithoutUserInput>, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
677
+ }
678
+
679
+ export type SubscriptionCreateNestedManyWithoutPlanInput = {
680
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput> | Prisma.SubscriptionCreateWithoutPlanInput[] | Prisma.SubscriptionUncheckedCreateWithoutPlanInput[]
681
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutPlanInput | Prisma.SubscriptionCreateOrConnectWithoutPlanInput[]
682
+ createMany?: Prisma.SubscriptionCreateManyPlanInputEnvelope
683
+ connect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
684
+ }
685
+
686
+ export type SubscriptionUncheckedCreateNestedManyWithoutPlanInput = {
687
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput> | Prisma.SubscriptionCreateWithoutPlanInput[] | Prisma.SubscriptionUncheckedCreateWithoutPlanInput[]
688
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutPlanInput | Prisma.SubscriptionCreateOrConnectWithoutPlanInput[]
689
+ createMany?: Prisma.SubscriptionCreateManyPlanInputEnvelope
690
+ connect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
691
+ }
692
+
693
+ export type SubscriptionUpdateManyWithoutPlanNestedInput = {
694
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput> | Prisma.SubscriptionCreateWithoutPlanInput[] | Prisma.SubscriptionUncheckedCreateWithoutPlanInput[]
695
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutPlanInput | Prisma.SubscriptionCreateOrConnectWithoutPlanInput[]
696
+ upsert?: Prisma.SubscriptionUpsertWithWhereUniqueWithoutPlanInput | Prisma.SubscriptionUpsertWithWhereUniqueWithoutPlanInput[]
697
+ createMany?: Prisma.SubscriptionCreateManyPlanInputEnvelope
698
+ set?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
699
+ disconnect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
700
+ delete?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
701
+ connect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
702
+ update?: Prisma.SubscriptionUpdateWithWhereUniqueWithoutPlanInput | Prisma.SubscriptionUpdateWithWhereUniqueWithoutPlanInput[]
703
+ updateMany?: Prisma.SubscriptionUpdateManyWithWhereWithoutPlanInput | Prisma.SubscriptionUpdateManyWithWhereWithoutPlanInput[]
704
+ deleteMany?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
705
+ }
706
+
707
+ export type SubscriptionUncheckedUpdateManyWithoutPlanNestedInput = {
708
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput> | Prisma.SubscriptionCreateWithoutPlanInput[] | Prisma.SubscriptionUncheckedCreateWithoutPlanInput[]
709
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutPlanInput | Prisma.SubscriptionCreateOrConnectWithoutPlanInput[]
710
+ upsert?: Prisma.SubscriptionUpsertWithWhereUniqueWithoutPlanInput | Prisma.SubscriptionUpsertWithWhereUniqueWithoutPlanInput[]
711
+ createMany?: Prisma.SubscriptionCreateManyPlanInputEnvelope
712
+ set?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
713
+ disconnect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
714
+ delete?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
715
+ connect?: Prisma.SubscriptionWhereUniqueInput | Prisma.SubscriptionWhereUniqueInput[]
716
+ update?: Prisma.SubscriptionUpdateWithWhereUniqueWithoutPlanInput | Prisma.SubscriptionUpdateWithWhereUniqueWithoutPlanInput[]
717
+ updateMany?: Prisma.SubscriptionUpdateManyWithWhereWithoutPlanInput | Prisma.SubscriptionUpdateManyWithWhereWithoutPlanInput[]
718
+ deleteMany?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
719
+ }
720
+
721
+ export type EnumSubscriptionStatusFieldUpdateOperationsInput = {
722
+ set?: $Enums.SubscriptionStatus
723
+ }
724
+
725
+ export type SubscriptionCreateNestedOneWithoutInvoicesInput = {
726
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
727
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutInvoicesInput
728
+ connect?: Prisma.SubscriptionWhereUniqueInput
729
+ }
730
+
731
+ export type SubscriptionUpdateOneRequiredWithoutInvoicesNestedInput = {
732
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
733
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutInvoicesInput
734
+ upsert?: Prisma.SubscriptionUpsertWithoutInvoicesInput
735
+ connect?: Prisma.SubscriptionWhereUniqueInput
736
+ update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUpdateToOneWithWhereWithoutInvoicesInput, Prisma.SubscriptionUpdateWithoutInvoicesInput>, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
737
+ }
738
+
739
+ export type SubscriptionCreateWithoutUserInput = {
740
+ id?: string
741
+ status?: $Enums.SubscriptionStatus
742
+ addonSeats?: number
743
+ provider?: string
744
+ providerCustomerId?: string | null
745
+ providerSubscriptionId?: string | null
746
+ providerPriceId?: string | null
747
+ providerSeatSubscriptionId?: string | null
748
+ currentPeriodStart?: Date | string | null
749
+ currentPeriodEnd?: Date | string | null
750
+ cancelAtPeriodEnd?: boolean
751
+ canceledAt?: Date | string | null
752
+ trialEndsAt?: Date | string | null
753
+ createdAt?: Date | string
754
+ updatedAt?: Date | string
755
+ plan: Prisma.PlanCreateNestedOneWithoutSubscriptionsInput
756
+ invoices?: Prisma.InvoiceCreateNestedManyWithoutSubscriptionInput
757
+ }
758
+
759
+ export type SubscriptionUncheckedCreateWithoutUserInput = {
760
+ id?: string
761
+ planId: string
762
+ status?: $Enums.SubscriptionStatus
763
+ addonSeats?: number
764
+ provider?: string
765
+ providerCustomerId?: string | null
766
+ providerSubscriptionId?: string | null
767
+ providerPriceId?: string | null
768
+ providerSeatSubscriptionId?: string | null
769
+ currentPeriodStart?: Date | string | null
770
+ currentPeriodEnd?: Date | string | null
771
+ cancelAtPeriodEnd?: boolean
772
+ canceledAt?: Date | string | null
773
+ trialEndsAt?: Date | string | null
774
+ createdAt?: Date | string
775
+ updatedAt?: Date | string
776
+ invoices?: Prisma.InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput
777
+ }
778
+
779
+ export type SubscriptionCreateOrConnectWithoutUserInput = {
780
+ where: Prisma.SubscriptionWhereUniqueInput
781
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
782
+ }
783
+
784
+ export type SubscriptionUpsertWithoutUserInput = {
785
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutUserInput, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
786
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
787
+ where?: Prisma.SubscriptionWhereInput
788
+ }
789
+
790
+ export type SubscriptionUpdateToOneWithWhereWithoutUserInput = {
791
+ where?: Prisma.SubscriptionWhereInput
792
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutUserInput, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
793
+ }
794
+
795
+ export type SubscriptionUpdateWithoutUserInput = {
796
+ id?: Prisma.StringFieldUpdateOperationsInput | string
797
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
798
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
799
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
800
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
801
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
802
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
803
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
804
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
805
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
806
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
807
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
808
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
809
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
810
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
811
+ plan?: Prisma.PlanUpdateOneRequiredWithoutSubscriptionsNestedInput
812
+ invoices?: Prisma.InvoiceUpdateManyWithoutSubscriptionNestedInput
813
+ }
814
+
815
+ export type SubscriptionUncheckedUpdateWithoutUserInput = {
816
+ id?: Prisma.StringFieldUpdateOperationsInput | string
817
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
818
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
819
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
820
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
821
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
822
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
823
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
824
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
825
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
826
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
827
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
828
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
829
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
830
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
831
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
832
+ invoices?: Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput
833
+ }
834
+
835
+ export type SubscriptionCreateWithoutPlanInput = {
836
+ id?: string
837
+ status?: $Enums.SubscriptionStatus
838
+ addonSeats?: number
839
+ provider?: string
840
+ providerCustomerId?: string | null
841
+ providerSubscriptionId?: string | null
842
+ providerPriceId?: string | null
843
+ providerSeatSubscriptionId?: string | null
844
+ currentPeriodStart?: Date | string | null
845
+ currentPeriodEnd?: Date | string | null
846
+ cancelAtPeriodEnd?: boolean
847
+ canceledAt?: Date | string | null
848
+ trialEndsAt?: Date | string | null
849
+ createdAt?: Date | string
850
+ updatedAt?: Date | string
851
+ user: Prisma.UserCreateNestedOneWithoutSubscriptionInput
852
+ invoices?: Prisma.InvoiceCreateNestedManyWithoutSubscriptionInput
853
+ }
854
+
855
+ export type SubscriptionUncheckedCreateWithoutPlanInput = {
856
+ id?: string
857
+ userId: string
858
+ status?: $Enums.SubscriptionStatus
859
+ addonSeats?: number
860
+ provider?: string
861
+ providerCustomerId?: string | null
862
+ providerSubscriptionId?: string | null
863
+ providerPriceId?: string | null
864
+ providerSeatSubscriptionId?: string | null
865
+ currentPeriodStart?: Date | string | null
866
+ currentPeriodEnd?: Date | string | null
867
+ cancelAtPeriodEnd?: boolean
868
+ canceledAt?: Date | string | null
869
+ trialEndsAt?: Date | string | null
870
+ createdAt?: Date | string
871
+ updatedAt?: Date | string
872
+ invoices?: Prisma.InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput
873
+ }
874
+
875
+ export type SubscriptionCreateOrConnectWithoutPlanInput = {
876
+ where: Prisma.SubscriptionWhereUniqueInput
877
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput>
878
+ }
879
+
880
+ export type SubscriptionCreateManyPlanInputEnvelope = {
881
+ data: Prisma.SubscriptionCreateManyPlanInput | Prisma.SubscriptionCreateManyPlanInput[]
882
+ skipDuplicates?: boolean
883
+ }
884
+
885
+ export type SubscriptionUpsertWithWhereUniqueWithoutPlanInput = {
886
+ where: Prisma.SubscriptionWhereUniqueInput
887
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutPlanInput, Prisma.SubscriptionUncheckedUpdateWithoutPlanInput>
888
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput>
889
+ }
890
+
891
+ export type SubscriptionUpdateWithWhereUniqueWithoutPlanInput = {
892
+ where: Prisma.SubscriptionWhereUniqueInput
893
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutPlanInput, Prisma.SubscriptionUncheckedUpdateWithoutPlanInput>
894
+ }
895
+
896
+ export type SubscriptionUpdateManyWithWhereWithoutPlanInput = {
897
+ where: Prisma.SubscriptionScalarWhereInput
898
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyWithoutPlanInput>
899
+ }
900
+
901
+ export type SubscriptionScalarWhereInput = {
902
+ AND?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
903
+ OR?: Prisma.SubscriptionScalarWhereInput[]
904
+ NOT?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
905
+ id?: Prisma.StringFilter<"Subscription"> | string
906
+ userId?: Prisma.StringFilter<"Subscription"> | string
907
+ planId?: Prisma.StringFilter<"Subscription"> | string
908
+ status?: Prisma.EnumSubscriptionStatusFilter<"Subscription"> | $Enums.SubscriptionStatus
909
+ addonSeats?: Prisma.IntFilter<"Subscription"> | number
910
+ provider?: Prisma.StringFilter<"Subscription"> | string
911
+ providerCustomerId?: Prisma.StringNullableFilter<"Subscription"> | string | null
912
+ providerSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
913
+ providerPriceId?: Prisma.StringNullableFilter<"Subscription"> | string | null
914
+ providerSeatSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
915
+ currentPeriodStart?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
916
+ currentPeriodEnd?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
917
+ cancelAtPeriodEnd?: Prisma.BoolFilter<"Subscription"> | boolean
918
+ canceledAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
919
+ trialEndsAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
920
+ createdAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
921
+ updatedAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
922
+ }
923
+
924
+ export type SubscriptionCreateWithoutInvoicesInput = {
925
+ id?: string
926
+ status?: $Enums.SubscriptionStatus
927
+ addonSeats?: number
928
+ provider?: string
929
+ providerCustomerId?: string | null
930
+ providerSubscriptionId?: string | null
931
+ providerPriceId?: string | null
932
+ providerSeatSubscriptionId?: string | null
933
+ currentPeriodStart?: Date | string | null
934
+ currentPeriodEnd?: Date | string | null
935
+ cancelAtPeriodEnd?: boolean
936
+ canceledAt?: Date | string | null
937
+ trialEndsAt?: Date | string | null
938
+ createdAt?: Date | string
939
+ updatedAt?: Date | string
940
+ user: Prisma.UserCreateNestedOneWithoutSubscriptionInput
941
+ plan: Prisma.PlanCreateNestedOneWithoutSubscriptionsInput
942
+ }
943
+
944
+ export type SubscriptionUncheckedCreateWithoutInvoicesInput = {
945
+ id?: string
946
+ userId: string
947
+ planId: string
948
+ status?: $Enums.SubscriptionStatus
949
+ addonSeats?: number
950
+ provider?: string
951
+ providerCustomerId?: string | null
952
+ providerSubscriptionId?: string | null
953
+ providerPriceId?: string | null
954
+ providerSeatSubscriptionId?: string | null
955
+ currentPeriodStart?: Date | string | null
956
+ currentPeriodEnd?: Date | string | null
957
+ cancelAtPeriodEnd?: boolean
958
+ canceledAt?: Date | string | null
959
+ trialEndsAt?: Date | string | null
960
+ createdAt?: Date | string
961
+ updatedAt?: Date | string
962
+ }
963
+
964
+ export type SubscriptionCreateOrConnectWithoutInvoicesInput = {
965
+ where: Prisma.SubscriptionWhereUniqueInput
966
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
967
+ }
968
+
969
+ export type SubscriptionUpsertWithoutInvoicesInput = {
970
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutInvoicesInput, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
971
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
972
+ where?: Prisma.SubscriptionWhereInput
973
+ }
974
+
975
+ export type SubscriptionUpdateToOneWithWhereWithoutInvoicesInput = {
976
+ where?: Prisma.SubscriptionWhereInput
977
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutInvoicesInput, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
978
+ }
979
+
980
+ export type SubscriptionUpdateWithoutInvoicesInput = {
981
+ id?: Prisma.StringFieldUpdateOperationsInput | string
982
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
983
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
984
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
985
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
986
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
987
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
988
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
989
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
990
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
991
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
992
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
993
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
994
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
995
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
996
+ user?: Prisma.UserUpdateOneRequiredWithoutSubscriptionNestedInput
997
+ plan?: Prisma.PlanUpdateOneRequiredWithoutSubscriptionsNestedInput
998
+ }
999
+
1000
+ export type SubscriptionUncheckedUpdateWithoutInvoicesInput = {
1001
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1002
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1003
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
1004
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
1005
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1006
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1007
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1008
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1009
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1010
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1011
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1012
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1013
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1014
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1015
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1016
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1017
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1018
+ }
1019
+
1020
+ export type SubscriptionCreateManyPlanInput = {
1021
+ id?: string
1022
+ userId: string
1023
+ status?: $Enums.SubscriptionStatus
1024
+ addonSeats?: number
1025
+ provider?: string
1026
+ providerCustomerId?: string | null
1027
+ providerSubscriptionId?: string | null
1028
+ providerPriceId?: string | null
1029
+ providerSeatSubscriptionId?: string | null
1030
+ currentPeriodStart?: Date | string | null
1031
+ currentPeriodEnd?: Date | string | null
1032
+ cancelAtPeriodEnd?: boolean
1033
+ canceledAt?: Date | string | null
1034
+ trialEndsAt?: Date | string | null
1035
+ createdAt?: Date | string
1036
+ updatedAt?: Date | string
1037
+ }
1038
+
1039
+ export type SubscriptionUpdateWithoutPlanInput = {
1040
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1041
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
1042
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1043
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1044
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1045
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1046
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1047
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1048
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1049
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1050
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1051
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1052
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1053
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1054
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1055
+ user?: Prisma.UserUpdateOneRequiredWithoutSubscriptionNestedInput
1056
+ invoices?: Prisma.InvoiceUpdateManyWithoutSubscriptionNestedInput
1057
+ }
1058
+
1059
+ export type SubscriptionUncheckedUpdateWithoutPlanInput = {
1060
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1061
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1062
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
1063
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1064
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1065
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1066
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1067
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1068
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1069
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1070
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1071
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1072
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1073
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1074
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1075
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1076
+ invoices?: Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput
1077
+ }
1078
+
1079
+ export type SubscriptionUncheckedUpdateManyWithoutPlanInput = {
1080
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1081
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1082
+ status?: Prisma.EnumSubscriptionStatusFieldUpdateOperationsInput | $Enums.SubscriptionStatus
1083
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1084
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1085
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1086
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1087
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1088
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1089
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1090
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1091
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1092
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1093
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1094
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1095
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1096
+ }
1097
+
1098
+
1099
+ /**
1100
+ * Count Type SubscriptionCountOutputType
1101
+ */
1102
+
1103
+ export type SubscriptionCountOutputType = {
1104
+ invoices: number
1105
+ }
1106
+
1107
+ export type SubscriptionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1108
+ invoices?: boolean | SubscriptionCountOutputTypeCountInvoicesArgs
1109
+ }
1110
+
1111
+ /**
1112
+ * SubscriptionCountOutputType without action
1113
+ */
1114
+ export type SubscriptionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1115
+ /**
1116
+ * Select specific fields to fetch from the SubscriptionCountOutputType
1117
+ */
1118
+ select?: Prisma.SubscriptionCountOutputTypeSelect<ExtArgs> | null
1119
+ }
1120
+
1121
+ /**
1122
+ * SubscriptionCountOutputType without action
1123
+ */
1124
+ export type SubscriptionCountOutputTypeCountInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
+ where?: Prisma.InvoiceWhereInput
1126
+ }
1127
+
1128
+
1129
+ export type SubscriptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1130
+ id?: boolean
1131
+ userId?: boolean
1132
+ planId?: boolean
1133
+ status?: boolean
1134
+ addonSeats?: boolean
1135
+ provider?: boolean
1136
+ providerCustomerId?: boolean
1137
+ providerSubscriptionId?: boolean
1138
+ providerPriceId?: boolean
1139
+ providerSeatSubscriptionId?: boolean
1140
+ currentPeriodStart?: boolean
1141
+ currentPeriodEnd?: boolean
1142
+ cancelAtPeriodEnd?: boolean
1143
+ canceledAt?: boolean
1144
+ trialEndsAt?: boolean
1145
+ createdAt?: boolean
1146
+ updatedAt?: boolean
1147
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1148
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1149
+ invoices?: boolean | Prisma.Subscription$invoicesArgs<ExtArgs>
1150
+ _count?: boolean | Prisma.SubscriptionCountOutputTypeDefaultArgs<ExtArgs>
1151
+ }, ExtArgs["result"]["subscription"]>
1152
+
1153
+ export type SubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1154
+ id?: boolean
1155
+ userId?: boolean
1156
+ planId?: boolean
1157
+ status?: boolean
1158
+ addonSeats?: boolean
1159
+ provider?: boolean
1160
+ providerCustomerId?: boolean
1161
+ providerSubscriptionId?: boolean
1162
+ providerPriceId?: boolean
1163
+ providerSeatSubscriptionId?: boolean
1164
+ currentPeriodStart?: boolean
1165
+ currentPeriodEnd?: boolean
1166
+ cancelAtPeriodEnd?: boolean
1167
+ canceledAt?: boolean
1168
+ trialEndsAt?: boolean
1169
+ createdAt?: boolean
1170
+ updatedAt?: boolean
1171
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1172
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1173
+ }, ExtArgs["result"]["subscription"]>
1174
+
1175
+ export type SubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1176
+ id?: boolean
1177
+ userId?: boolean
1178
+ planId?: boolean
1179
+ status?: boolean
1180
+ addonSeats?: boolean
1181
+ provider?: boolean
1182
+ providerCustomerId?: boolean
1183
+ providerSubscriptionId?: boolean
1184
+ providerPriceId?: boolean
1185
+ providerSeatSubscriptionId?: boolean
1186
+ currentPeriodStart?: boolean
1187
+ currentPeriodEnd?: boolean
1188
+ cancelAtPeriodEnd?: boolean
1189
+ canceledAt?: boolean
1190
+ trialEndsAt?: boolean
1191
+ createdAt?: boolean
1192
+ updatedAt?: boolean
1193
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1194
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1195
+ }, ExtArgs["result"]["subscription"]>
1196
+
1197
+ export type SubscriptionSelectScalar = {
1198
+ id?: boolean
1199
+ userId?: boolean
1200
+ planId?: boolean
1201
+ status?: boolean
1202
+ addonSeats?: boolean
1203
+ provider?: boolean
1204
+ providerCustomerId?: boolean
1205
+ providerSubscriptionId?: boolean
1206
+ providerPriceId?: boolean
1207
+ providerSeatSubscriptionId?: boolean
1208
+ currentPeriodStart?: boolean
1209
+ currentPeriodEnd?: boolean
1210
+ cancelAtPeriodEnd?: boolean
1211
+ canceledAt?: boolean
1212
+ trialEndsAt?: boolean
1213
+ createdAt?: boolean
1214
+ updatedAt?: boolean
1215
+ }
1216
+
1217
+ export type SubscriptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "planId" | "status" | "addonSeats" | "provider" | "providerCustomerId" | "providerSubscriptionId" | "providerPriceId" | "providerSeatSubscriptionId" | "currentPeriodStart" | "currentPeriodEnd" | "cancelAtPeriodEnd" | "canceledAt" | "trialEndsAt" | "createdAt" | "updatedAt", ExtArgs["result"]["subscription"]>
1218
+ export type SubscriptionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1219
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1220
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1221
+ invoices?: boolean | Prisma.Subscription$invoicesArgs<ExtArgs>
1222
+ _count?: boolean | Prisma.SubscriptionCountOutputTypeDefaultArgs<ExtArgs>
1223
+ }
1224
+ export type SubscriptionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1225
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1226
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1227
+ }
1228
+ export type SubscriptionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1230
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1231
+ }
1232
+
1233
+ export type $SubscriptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1234
+ name: "Subscription"
1235
+ objects: {
1236
+ user: Prisma.$UserPayload<ExtArgs>
1237
+ plan: Prisma.$PlanPayload<ExtArgs>
1238
+ /**
1239
+ * 关联发票(子项目 3 新增)
1240
+ */
1241
+ invoices: Prisma.$InvoicePayload<ExtArgs>[]
1242
+ }
1243
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1244
+ id: string
1245
+ userId: string
1246
+ planId: string
1247
+ status: $Enums.SubscriptionStatus
1248
+ /**
1249
+ * 席位加购数量(账号级)。实际上限 = plan.maxSeats + addonSeats。
1250
+ */
1251
+ addonSeats: number
1252
+ provider: string
1253
+ providerCustomerId: string | null
1254
+ providerSubscriptionId: string | null
1255
+ providerPriceId: string | null
1256
+ providerSeatSubscriptionId: string | null
1257
+ currentPeriodStart: Date | null
1258
+ currentPeriodEnd: Date | null
1259
+ cancelAtPeriodEnd: boolean
1260
+ canceledAt: Date | null
1261
+ trialEndsAt: Date | null
1262
+ createdAt: Date
1263
+ updatedAt: Date
1264
+ }, ExtArgs["result"]["subscription"]>
1265
+ composites: {}
1266
+ }
1267
+
1268
+ export type SubscriptionGetPayload<S extends boolean | null | undefined | SubscriptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload, S>
1269
+
1270
+ export type SubscriptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1271
+ Omit<SubscriptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1272
+ select?: SubscriptionCountAggregateInputType | true
1273
+ }
1274
+
1275
+ export interface SubscriptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1276
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Subscription'], meta: { name: 'Subscription' } }
1277
+ /**
1278
+ * Find zero or one Subscription that matches the filter.
1279
+ * @param {SubscriptionFindUniqueArgs} args - Arguments to find a Subscription
1280
+ * @example
1281
+ * // Get one Subscription
1282
+ * const subscription = await prisma.subscription.findUnique({
1283
+ * where: {
1284
+ * // ... provide filter here
1285
+ * }
1286
+ * })
1287
+ */
1288
+ findUnique<T extends SubscriptionFindUniqueArgs>(args: Prisma.SelectSubset<T, SubscriptionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1289
+
1290
+ /**
1291
+ * Find one Subscription that matches the filter or throw an error with `error.code='P2025'`
1292
+ * if no matches were found.
1293
+ * @param {SubscriptionFindUniqueOrThrowArgs} args - Arguments to find a Subscription
1294
+ * @example
1295
+ * // Get one Subscription
1296
+ * const subscription = await prisma.subscription.findUniqueOrThrow({
1297
+ * where: {
1298
+ * // ... provide filter here
1299
+ * }
1300
+ * })
1301
+ */
1302
+ findUniqueOrThrow<T extends SubscriptionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SubscriptionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1303
+
1304
+ /**
1305
+ * Find the first Subscription that matches the filter.
1306
+ * Note, that providing `undefined` is treated as the value not being there.
1307
+ * Read more here: https://pris.ly/d/null-undefined
1308
+ * @param {SubscriptionFindFirstArgs} args - Arguments to find a Subscription
1309
+ * @example
1310
+ * // Get one Subscription
1311
+ * const subscription = await prisma.subscription.findFirst({
1312
+ * where: {
1313
+ * // ... provide filter here
1314
+ * }
1315
+ * })
1316
+ */
1317
+ findFirst<T extends SubscriptionFindFirstArgs>(args?: Prisma.SelectSubset<T, SubscriptionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1318
+
1319
+ /**
1320
+ * Find the first Subscription that matches the filter or
1321
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1322
+ * Note, that providing `undefined` is treated as the value not being there.
1323
+ * Read more here: https://pris.ly/d/null-undefined
1324
+ * @param {SubscriptionFindFirstOrThrowArgs} args - Arguments to find a Subscription
1325
+ * @example
1326
+ * // Get one Subscription
1327
+ * const subscription = await prisma.subscription.findFirstOrThrow({
1328
+ * where: {
1329
+ * // ... provide filter here
1330
+ * }
1331
+ * })
1332
+ */
1333
+ findFirstOrThrow<T extends SubscriptionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SubscriptionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1334
+
1335
+ /**
1336
+ * Find zero or more Subscriptions that matches the filter.
1337
+ * Note, that providing `undefined` is treated as the value not being there.
1338
+ * Read more here: https://pris.ly/d/null-undefined
1339
+ * @param {SubscriptionFindManyArgs} args - Arguments to filter and select certain fields only.
1340
+ * @example
1341
+ * // Get all Subscriptions
1342
+ * const subscriptions = await prisma.subscription.findMany()
1343
+ *
1344
+ * // Get first 10 Subscriptions
1345
+ * const subscriptions = await prisma.subscription.findMany({ take: 10 })
1346
+ *
1347
+ * // Only select the `id`
1348
+ * const subscriptionWithIdOnly = await prisma.subscription.findMany({ select: { id: true } })
1349
+ *
1350
+ */
1351
+ findMany<T extends SubscriptionFindManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1352
+
1353
+ /**
1354
+ * Create a Subscription.
1355
+ * @param {SubscriptionCreateArgs} args - Arguments to create a Subscription.
1356
+ * @example
1357
+ * // Create one Subscription
1358
+ * const Subscription = await prisma.subscription.create({
1359
+ * data: {
1360
+ * // ... data to create a Subscription
1361
+ * }
1362
+ * })
1363
+ *
1364
+ */
1365
+ create<T extends SubscriptionCreateArgs>(args: Prisma.SelectSubset<T, SubscriptionCreateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1366
+
1367
+ /**
1368
+ * Create many Subscriptions.
1369
+ * @param {SubscriptionCreateManyArgs} args - Arguments to create many Subscriptions.
1370
+ * @example
1371
+ * // Create many Subscriptions
1372
+ * const subscription = await prisma.subscription.createMany({
1373
+ * data: [
1374
+ * // ... provide data here
1375
+ * ]
1376
+ * })
1377
+ *
1378
+ */
1379
+ createMany<T extends SubscriptionCreateManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1380
+
1381
+ /**
1382
+ * Create many Subscriptions and returns the data saved in the database.
1383
+ * @param {SubscriptionCreateManyAndReturnArgs} args - Arguments to create many Subscriptions.
1384
+ * @example
1385
+ * // Create many Subscriptions
1386
+ * const subscription = await prisma.subscription.createManyAndReturn({
1387
+ * data: [
1388
+ * // ... provide data here
1389
+ * ]
1390
+ * })
1391
+ *
1392
+ * // Create many Subscriptions and only return the `id`
1393
+ * const subscriptionWithIdOnly = await prisma.subscription.createManyAndReturn({
1394
+ * select: { id: true },
1395
+ * data: [
1396
+ * // ... provide data here
1397
+ * ]
1398
+ * })
1399
+ * Note, that providing `undefined` is treated as the value not being there.
1400
+ * Read more here: https://pris.ly/d/null-undefined
1401
+ *
1402
+ */
1403
+ createManyAndReturn<T extends SubscriptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubscriptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1404
+
1405
+ /**
1406
+ * Delete a Subscription.
1407
+ * @param {SubscriptionDeleteArgs} args - Arguments to delete one Subscription.
1408
+ * @example
1409
+ * // Delete one Subscription
1410
+ * const Subscription = await prisma.subscription.delete({
1411
+ * where: {
1412
+ * // ... filter to delete one Subscription
1413
+ * }
1414
+ * })
1415
+ *
1416
+ */
1417
+ delete<T extends SubscriptionDeleteArgs>(args: Prisma.SelectSubset<T, SubscriptionDeleteArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1418
+
1419
+ /**
1420
+ * Update one Subscription.
1421
+ * @param {SubscriptionUpdateArgs} args - Arguments to update one Subscription.
1422
+ * @example
1423
+ * // Update one Subscription
1424
+ * const subscription = await prisma.subscription.update({
1425
+ * where: {
1426
+ * // ... provide filter here
1427
+ * },
1428
+ * data: {
1429
+ * // ... provide data here
1430
+ * }
1431
+ * })
1432
+ *
1433
+ */
1434
+ update<T extends SubscriptionUpdateArgs>(args: Prisma.SelectSubset<T, SubscriptionUpdateArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1435
+
1436
+ /**
1437
+ * Delete zero or more Subscriptions.
1438
+ * @param {SubscriptionDeleteManyArgs} args - Arguments to filter Subscriptions to delete.
1439
+ * @example
1440
+ * // Delete a few Subscriptions
1441
+ * const { count } = await prisma.subscription.deleteMany({
1442
+ * where: {
1443
+ * // ... provide filter here
1444
+ * }
1445
+ * })
1446
+ *
1447
+ */
1448
+ deleteMany<T extends SubscriptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1449
+
1450
+ /**
1451
+ * Update zero or more Subscriptions.
1452
+ * Note, that providing `undefined` is treated as the value not being there.
1453
+ * Read more here: https://pris.ly/d/null-undefined
1454
+ * @param {SubscriptionUpdateManyArgs} args - Arguments to update one or more rows.
1455
+ * @example
1456
+ * // Update many Subscriptions
1457
+ * const subscription = await prisma.subscription.updateMany({
1458
+ * where: {
1459
+ * // ... provide filter here
1460
+ * },
1461
+ * data: {
1462
+ * // ... provide data here
1463
+ * }
1464
+ * })
1465
+ *
1466
+ */
1467
+ updateMany<T extends SubscriptionUpdateManyArgs>(args: Prisma.SelectSubset<T, SubscriptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1468
+
1469
+ /**
1470
+ * Update zero or more Subscriptions and returns the data updated in the database.
1471
+ * @param {SubscriptionUpdateManyAndReturnArgs} args - Arguments to update many Subscriptions.
1472
+ * @example
1473
+ * // Update many Subscriptions
1474
+ * const subscription = await prisma.subscription.updateManyAndReturn({
1475
+ * where: {
1476
+ * // ... provide filter here
1477
+ * },
1478
+ * data: [
1479
+ * // ... provide data here
1480
+ * ]
1481
+ * })
1482
+ *
1483
+ * // Update zero or more Subscriptions and only return the `id`
1484
+ * const subscriptionWithIdOnly = await prisma.subscription.updateManyAndReturn({
1485
+ * select: { id: true },
1486
+ * where: {
1487
+ * // ... provide filter here
1488
+ * },
1489
+ * data: [
1490
+ * // ... provide data here
1491
+ * ]
1492
+ * })
1493
+ * Note, that providing `undefined` is treated as the value not being there.
1494
+ * Read more here: https://pris.ly/d/null-undefined
1495
+ *
1496
+ */
1497
+ updateManyAndReturn<T extends SubscriptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubscriptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1498
+
1499
+ /**
1500
+ * Create or update one Subscription.
1501
+ * @param {SubscriptionUpsertArgs} args - Arguments to update or create a Subscription.
1502
+ * @example
1503
+ * // Update or create a Subscription
1504
+ * const subscription = await prisma.subscription.upsert({
1505
+ * create: {
1506
+ * // ... data to create a Subscription
1507
+ * },
1508
+ * update: {
1509
+ * // ... in case it already exists, update
1510
+ * },
1511
+ * where: {
1512
+ * // ... the filter for the Subscription we want to update
1513
+ * }
1514
+ * })
1515
+ */
1516
+ upsert<T extends SubscriptionUpsertArgs>(args: Prisma.SelectSubset<T, SubscriptionUpsertArgs<ExtArgs>>): Prisma.Prisma__SubscriptionClient<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1517
+
1518
+
1519
+ /**
1520
+ * Count the number of Subscriptions.
1521
+ * Note, that providing `undefined` is treated as the value not being there.
1522
+ * Read more here: https://pris.ly/d/null-undefined
1523
+ * @param {SubscriptionCountArgs} args - Arguments to filter Subscriptions to count.
1524
+ * @example
1525
+ * // Count the number of Subscriptions
1526
+ * const count = await prisma.subscription.count({
1527
+ * where: {
1528
+ * // ... the filter for the Subscriptions we want to count
1529
+ * }
1530
+ * })
1531
+ **/
1532
+ count<T extends SubscriptionCountArgs>(
1533
+ args?: Prisma.Subset<T, SubscriptionCountArgs>,
1534
+ ): Prisma.PrismaPromise<
1535
+ T extends runtime.Types.Utils.Record<'select', any>
1536
+ ? T['select'] extends true
1537
+ ? number
1538
+ : Prisma.GetScalarType<T['select'], SubscriptionCountAggregateOutputType>
1539
+ : number
1540
+ >
1541
+
1542
+ /**
1543
+ * Allows you to perform aggregations operations on a Subscription.
1544
+ * Note, that providing `undefined` is treated as the value not being there.
1545
+ * Read more here: https://pris.ly/d/null-undefined
1546
+ * @param {SubscriptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1547
+ * @example
1548
+ * // Ordered by age ascending
1549
+ * // Where email contains prisma.io
1550
+ * // Limited to the 10 users
1551
+ * const aggregations = await prisma.user.aggregate({
1552
+ * _avg: {
1553
+ * age: true,
1554
+ * },
1555
+ * where: {
1556
+ * email: {
1557
+ * contains: "prisma.io",
1558
+ * },
1559
+ * },
1560
+ * orderBy: {
1561
+ * age: "asc",
1562
+ * },
1563
+ * take: 10,
1564
+ * })
1565
+ **/
1566
+ aggregate<T extends SubscriptionAggregateArgs>(args: Prisma.Subset<T, SubscriptionAggregateArgs>): Prisma.PrismaPromise<GetSubscriptionAggregateType<T>>
1567
+
1568
+ /**
1569
+ * Group by Subscription.
1570
+ * Note, that providing `undefined` is treated as the value not being there.
1571
+ * Read more here: https://pris.ly/d/null-undefined
1572
+ * @param {SubscriptionGroupByArgs} args - Group by arguments.
1573
+ * @example
1574
+ * // Group by city, order by createdAt, get count
1575
+ * const result = await prisma.user.groupBy({
1576
+ * by: ['city', 'createdAt'],
1577
+ * orderBy: {
1578
+ * createdAt: true
1579
+ * },
1580
+ * _count: {
1581
+ * _all: true
1582
+ * },
1583
+ * })
1584
+ *
1585
+ **/
1586
+ groupBy<
1587
+ T extends SubscriptionGroupByArgs,
1588
+ HasSelectOrTake extends Prisma.Or<
1589
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1590
+ Prisma.Extends<'take', Prisma.Keys<T>>
1591
+ >,
1592
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1593
+ ? { orderBy: SubscriptionGroupByArgs['orderBy'] }
1594
+ : { orderBy?: SubscriptionGroupByArgs['orderBy'] },
1595
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1596
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1597
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1598
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1599
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1600
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1601
+ InputErrors extends ByEmpty extends Prisma.True
1602
+ ? `Error: "by" must not be empty.`
1603
+ : HavingValid extends Prisma.False
1604
+ ? {
1605
+ [P in HavingFields]: P extends ByFields
1606
+ ? never
1607
+ : P extends string
1608
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1609
+ : [
1610
+ Error,
1611
+ 'Field ',
1612
+ P,
1613
+ ` in "having" needs to be provided in "by"`,
1614
+ ]
1615
+ }[HavingFields]
1616
+ : 'take' extends Prisma.Keys<T>
1617
+ ? 'orderBy' extends Prisma.Keys<T>
1618
+ ? ByValid extends Prisma.True
1619
+ ? {}
1620
+ : {
1621
+ [P in OrderFields]: P extends ByFields
1622
+ ? never
1623
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1624
+ }[OrderFields]
1625
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1626
+ : 'skip' extends Prisma.Keys<T>
1627
+ ? 'orderBy' extends Prisma.Keys<T>
1628
+ ? ByValid extends Prisma.True
1629
+ ? {}
1630
+ : {
1631
+ [P in OrderFields]: P extends ByFields
1632
+ ? never
1633
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1634
+ }[OrderFields]
1635
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1636
+ : ByValid extends Prisma.True
1637
+ ? {}
1638
+ : {
1639
+ [P in OrderFields]: P extends ByFields
1640
+ ? never
1641
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1642
+ }[OrderFields]
1643
+ >(args: Prisma.SubsetIntersection<T, SubscriptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubscriptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1644
+ /**
1645
+ * Fields of the Subscription model
1646
+ */
1647
+ readonly fields: SubscriptionFieldRefs;
1648
+ }
1649
+
1650
+ /**
1651
+ * The delegate class that acts as a "Promise-like" for Subscription.
1652
+ * Why is this prefixed with `Prisma__`?
1653
+ * Because we want to prevent naming conflicts as mentioned in
1654
+ * https://github.com/prisma/prisma-client-js/issues/707
1655
+ */
1656
+ export interface Prisma__SubscriptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1657
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1658
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1659
+ plan<T extends Prisma.PlanDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PlanDefaultArgs<ExtArgs>>): Prisma.Prisma__PlanClient<runtime.Types.Result.GetResult<Prisma.$PlanPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1660
+ invoices<T extends Prisma.Subscription$invoicesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Subscription$invoicesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$InvoicePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1661
+ /**
1662
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1663
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1664
+ * @param onrejected The callback to execute when the Promise is rejected.
1665
+ * @returns A Promise for the completion of which ever callback is executed.
1666
+ */
1667
+ 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>
1668
+ /**
1669
+ * Attaches a callback for only the rejection of the Promise.
1670
+ * @param onrejected The callback to execute when the Promise is rejected.
1671
+ * @returns A Promise for the completion of the callback.
1672
+ */
1673
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1674
+ /**
1675
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1676
+ * resolved value cannot be modified from the callback.
1677
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1678
+ * @returns A Promise for the completion of the callback.
1679
+ */
1680
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1681
+ }
1682
+
1683
+
1684
+
1685
+
1686
+ /**
1687
+ * Fields of the Subscription model
1688
+ */
1689
+ export interface SubscriptionFieldRefs {
1690
+ readonly id: Prisma.FieldRef<"Subscription", 'String'>
1691
+ readonly userId: Prisma.FieldRef<"Subscription", 'String'>
1692
+ readonly planId: Prisma.FieldRef<"Subscription", 'String'>
1693
+ readonly status: Prisma.FieldRef<"Subscription", 'SubscriptionStatus'>
1694
+ readonly addonSeats: Prisma.FieldRef<"Subscription", 'Int'>
1695
+ readonly provider: Prisma.FieldRef<"Subscription", 'String'>
1696
+ readonly providerCustomerId: Prisma.FieldRef<"Subscription", 'String'>
1697
+ readonly providerSubscriptionId: Prisma.FieldRef<"Subscription", 'String'>
1698
+ readonly providerPriceId: Prisma.FieldRef<"Subscription", 'String'>
1699
+ readonly providerSeatSubscriptionId: Prisma.FieldRef<"Subscription", 'String'>
1700
+ readonly currentPeriodStart: Prisma.FieldRef<"Subscription", 'DateTime'>
1701
+ readonly currentPeriodEnd: Prisma.FieldRef<"Subscription", 'DateTime'>
1702
+ readonly cancelAtPeriodEnd: Prisma.FieldRef<"Subscription", 'Boolean'>
1703
+ readonly canceledAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1704
+ readonly trialEndsAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1705
+ readonly createdAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1706
+ readonly updatedAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1707
+ }
1708
+
1709
+
1710
+ // Custom InputTypes
1711
+ /**
1712
+ * Subscription findUnique
1713
+ */
1714
+ export type SubscriptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1715
+ /**
1716
+ * Select specific fields to fetch from the Subscription
1717
+ */
1718
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1719
+ /**
1720
+ * Omit specific fields from the Subscription
1721
+ */
1722
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1723
+ /**
1724
+ * Choose, which related nodes to fetch as well
1725
+ */
1726
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1727
+ /**
1728
+ * Filter, which Subscription to fetch.
1729
+ */
1730
+ where: Prisma.SubscriptionWhereUniqueInput
1731
+ }
1732
+
1733
+ /**
1734
+ * Subscription findUniqueOrThrow
1735
+ */
1736
+ export type SubscriptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1737
+ /**
1738
+ * Select specific fields to fetch from the Subscription
1739
+ */
1740
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1741
+ /**
1742
+ * Omit specific fields from the Subscription
1743
+ */
1744
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1745
+ /**
1746
+ * Choose, which related nodes to fetch as well
1747
+ */
1748
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1749
+ /**
1750
+ * Filter, which Subscription to fetch.
1751
+ */
1752
+ where: Prisma.SubscriptionWhereUniqueInput
1753
+ }
1754
+
1755
+ /**
1756
+ * Subscription findFirst
1757
+ */
1758
+ export type SubscriptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1759
+ /**
1760
+ * Select specific fields to fetch from the Subscription
1761
+ */
1762
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1763
+ /**
1764
+ * Omit specific fields from the Subscription
1765
+ */
1766
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1767
+ /**
1768
+ * Choose, which related nodes to fetch as well
1769
+ */
1770
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1771
+ /**
1772
+ * Filter, which Subscription to fetch.
1773
+ */
1774
+ where?: Prisma.SubscriptionWhereInput
1775
+ /**
1776
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1777
+ *
1778
+ * Determine the order of Subscriptions to fetch.
1779
+ */
1780
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1781
+ /**
1782
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1783
+ *
1784
+ * Sets the position for searching for Subscriptions.
1785
+ */
1786
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1787
+ /**
1788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1789
+ *
1790
+ * Take `±n` Subscriptions from the position of the cursor.
1791
+ */
1792
+ take?: number
1793
+ /**
1794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1795
+ *
1796
+ * Skip the first `n` Subscriptions.
1797
+ */
1798
+ skip?: number
1799
+ /**
1800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1801
+ *
1802
+ * Filter by unique combinations of Subscriptions.
1803
+ */
1804
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1805
+ }
1806
+
1807
+ /**
1808
+ * Subscription findFirstOrThrow
1809
+ */
1810
+ export type SubscriptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1811
+ /**
1812
+ * Select specific fields to fetch from the Subscription
1813
+ */
1814
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1815
+ /**
1816
+ * Omit specific fields from the Subscription
1817
+ */
1818
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1819
+ /**
1820
+ * Choose, which related nodes to fetch as well
1821
+ */
1822
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1823
+ /**
1824
+ * Filter, which Subscription to fetch.
1825
+ */
1826
+ where?: Prisma.SubscriptionWhereInput
1827
+ /**
1828
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1829
+ *
1830
+ * Determine the order of Subscriptions to fetch.
1831
+ */
1832
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1833
+ /**
1834
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1835
+ *
1836
+ * Sets the position for searching for Subscriptions.
1837
+ */
1838
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1839
+ /**
1840
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1841
+ *
1842
+ * Take `±n` Subscriptions from the position of the cursor.
1843
+ */
1844
+ take?: number
1845
+ /**
1846
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1847
+ *
1848
+ * Skip the first `n` Subscriptions.
1849
+ */
1850
+ skip?: number
1851
+ /**
1852
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1853
+ *
1854
+ * Filter by unique combinations of Subscriptions.
1855
+ */
1856
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1857
+ }
1858
+
1859
+ /**
1860
+ * Subscription findMany
1861
+ */
1862
+ export type SubscriptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1863
+ /**
1864
+ * Select specific fields to fetch from the Subscription
1865
+ */
1866
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1867
+ /**
1868
+ * Omit specific fields from the Subscription
1869
+ */
1870
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1871
+ /**
1872
+ * Choose, which related nodes to fetch as well
1873
+ */
1874
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1875
+ /**
1876
+ * Filter, which Subscriptions to fetch.
1877
+ */
1878
+ where?: Prisma.SubscriptionWhereInput
1879
+ /**
1880
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1881
+ *
1882
+ * Determine the order of Subscriptions to fetch.
1883
+ */
1884
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1885
+ /**
1886
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1887
+ *
1888
+ * Sets the position for listing Subscriptions.
1889
+ */
1890
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1891
+ /**
1892
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1893
+ *
1894
+ * Take `±n` Subscriptions from the position of the cursor.
1895
+ */
1896
+ take?: number
1897
+ /**
1898
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1899
+ *
1900
+ * Skip the first `n` Subscriptions.
1901
+ */
1902
+ skip?: number
1903
+ /**
1904
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1905
+ *
1906
+ * Filter by unique combinations of Subscriptions.
1907
+ */
1908
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1909
+ }
1910
+
1911
+ /**
1912
+ * Subscription create
1913
+ */
1914
+ export type SubscriptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1915
+ /**
1916
+ * Select specific fields to fetch from the Subscription
1917
+ */
1918
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1919
+ /**
1920
+ * Omit specific fields from the Subscription
1921
+ */
1922
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1923
+ /**
1924
+ * Choose, which related nodes to fetch as well
1925
+ */
1926
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1927
+ /**
1928
+ * The data needed to create a Subscription.
1929
+ */
1930
+ data: Prisma.XOR<Prisma.SubscriptionCreateInput, Prisma.SubscriptionUncheckedCreateInput>
1931
+ }
1932
+
1933
+ /**
1934
+ * Subscription createMany
1935
+ */
1936
+ export type SubscriptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1937
+ /**
1938
+ * The data used to create many Subscriptions.
1939
+ */
1940
+ data: Prisma.SubscriptionCreateManyInput | Prisma.SubscriptionCreateManyInput[]
1941
+ skipDuplicates?: boolean
1942
+ }
1943
+
1944
+ /**
1945
+ * Subscription createManyAndReturn
1946
+ */
1947
+ export type SubscriptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1948
+ /**
1949
+ * Select specific fields to fetch from the Subscription
1950
+ */
1951
+ select?: Prisma.SubscriptionSelectCreateManyAndReturn<ExtArgs> | null
1952
+ /**
1953
+ * Omit specific fields from the Subscription
1954
+ */
1955
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1956
+ /**
1957
+ * The data used to create many Subscriptions.
1958
+ */
1959
+ data: Prisma.SubscriptionCreateManyInput | Prisma.SubscriptionCreateManyInput[]
1960
+ skipDuplicates?: boolean
1961
+ /**
1962
+ * Choose, which related nodes to fetch as well
1963
+ */
1964
+ include?: Prisma.SubscriptionIncludeCreateManyAndReturn<ExtArgs> | null
1965
+ }
1966
+
1967
+ /**
1968
+ * Subscription update
1969
+ */
1970
+ export type SubscriptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1971
+ /**
1972
+ * Select specific fields to fetch from the Subscription
1973
+ */
1974
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1975
+ /**
1976
+ * Omit specific fields from the Subscription
1977
+ */
1978
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1979
+ /**
1980
+ * Choose, which related nodes to fetch as well
1981
+ */
1982
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1983
+ /**
1984
+ * The data needed to update a Subscription.
1985
+ */
1986
+ data: Prisma.XOR<Prisma.SubscriptionUpdateInput, Prisma.SubscriptionUncheckedUpdateInput>
1987
+ /**
1988
+ * Choose, which Subscription to update.
1989
+ */
1990
+ where: Prisma.SubscriptionWhereUniqueInput
1991
+ }
1992
+
1993
+ /**
1994
+ * Subscription updateMany
1995
+ */
1996
+ export type SubscriptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1997
+ /**
1998
+ * The data used to update Subscriptions.
1999
+ */
2000
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyInput>
2001
+ /**
2002
+ * Filter which Subscriptions to update
2003
+ */
2004
+ where?: Prisma.SubscriptionWhereInput
2005
+ /**
2006
+ * Limit how many Subscriptions to update.
2007
+ */
2008
+ limit?: number
2009
+ }
2010
+
2011
+ /**
2012
+ * Subscription updateManyAndReturn
2013
+ */
2014
+ export type SubscriptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2015
+ /**
2016
+ * Select specific fields to fetch from the Subscription
2017
+ */
2018
+ select?: Prisma.SubscriptionSelectUpdateManyAndReturn<ExtArgs> | null
2019
+ /**
2020
+ * Omit specific fields from the Subscription
2021
+ */
2022
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2023
+ /**
2024
+ * The data used to update Subscriptions.
2025
+ */
2026
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyInput>
2027
+ /**
2028
+ * Filter which Subscriptions to update
2029
+ */
2030
+ where?: Prisma.SubscriptionWhereInput
2031
+ /**
2032
+ * Limit how many Subscriptions to update.
2033
+ */
2034
+ limit?: number
2035
+ /**
2036
+ * Choose, which related nodes to fetch as well
2037
+ */
2038
+ include?: Prisma.SubscriptionIncludeUpdateManyAndReturn<ExtArgs> | null
2039
+ }
2040
+
2041
+ /**
2042
+ * Subscription upsert
2043
+ */
2044
+ export type SubscriptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2045
+ /**
2046
+ * Select specific fields to fetch from the Subscription
2047
+ */
2048
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2049
+ /**
2050
+ * Omit specific fields from the Subscription
2051
+ */
2052
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2053
+ /**
2054
+ * Choose, which related nodes to fetch as well
2055
+ */
2056
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2057
+ /**
2058
+ * The filter to search for the Subscription to update in case it exists.
2059
+ */
2060
+ where: Prisma.SubscriptionWhereUniqueInput
2061
+ /**
2062
+ * In case the Subscription found by the `where` argument doesn't exist, create a new Subscription with this data.
2063
+ */
2064
+ create: Prisma.XOR<Prisma.SubscriptionCreateInput, Prisma.SubscriptionUncheckedCreateInput>
2065
+ /**
2066
+ * In case the Subscription was found with the provided `where` argument, update it with this data.
2067
+ */
2068
+ update: Prisma.XOR<Prisma.SubscriptionUpdateInput, Prisma.SubscriptionUncheckedUpdateInput>
2069
+ }
2070
+
2071
+ /**
2072
+ * Subscription delete
2073
+ */
2074
+ export type SubscriptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2075
+ /**
2076
+ * Select specific fields to fetch from the Subscription
2077
+ */
2078
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2079
+ /**
2080
+ * Omit specific fields from the Subscription
2081
+ */
2082
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2083
+ /**
2084
+ * Choose, which related nodes to fetch as well
2085
+ */
2086
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2087
+ /**
2088
+ * Filter which Subscription to delete.
2089
+ */
2090
+ where: Prisma.SubscriptionWhereUniqueInput
2091
+ }
2092
+
2093
+ /**
2094
+ * Subscription deleteMany
2095
+ */
2096
+ export type SubscriptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2097
+ /**
2098
+ * Filter which Subscriptions to delete
2099
+ */
2100
+ where?: Prisma.SubscriptionWhereInput
2101
+ /**
2102
+ * Limit how many Subscriptions to delete.
2103
+ */
2104
+ limit?: number
2105
+ }
2106
+
2107
+ /**
2108
+ * Subscription.invoices
2109
+ */
2110
+ export type Subscription$invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2111
+ /**
2112
+ * Select specific fields to fetch from the Invoice
2113
+ */
2114
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
2115
+ /**
2116
+ * Omit specific fields from the Invoice
2117
+ */
2118
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
2119
+ /**
2120
+ * Choose, which related nodes to fetch as well
2121
+ */
2122
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
2123
+ where?: Prisma.InvoiceWhereInput
2124
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
2125
+ cursor?: Prisma.InvoiceWhereUniqueInput
2126
+ take?: number
2127
+ skip?: number
2128
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
2129
+ }
2130
+
2131
+ /**
2132
+ * Subscription without action
2133
+ */
2134
+ export type SubscriptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2135
+ /**
2136
+ * Select specific fields to fetch from the Subscription
2137
+ */
2138
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2139
+ /**
2140
+ * Omit specific fields from the Subscription
2141
+ */
2142
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2143
+ /**
2144
+ * Choose, which related nodes to fetch as well
2145
+ */
2146
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2147
+ }