@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,2137 @@
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: string | 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: string | 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: string
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.StringFilter<"Subscription"> | string
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.StringFilter<"Subscription"> | string
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.StringWithAggregatesFilter<"Subscription"> | string
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?: string
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?: string
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.StringFieldUpdateOperationsInput | string
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.StringFieldUpdateOperationsInput | string
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?: string
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.StringFieldUpdateOperationsInput | string
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.StringFieldUpdateOperationsInput | string
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 SubscriptionCreateNestedOneWithoutInvoicesInput = {
722
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
723
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutInvoicesInput
724
+ connect?: Prisma.SubscriptionWhereUniqueInput
725
+ }
726
+
727
+ export type SubscriptionUpdateOneRequiredWithoutInvoicesNestedInput = {
728
+ create?: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
729
+ connectOrCreate?: Prisma.SubscriptionCreateOrConnectWithoutInvoicesInput
730
+ upsert?: Prisma.SubscriptionUpsertWithoutInvoicesInput
731
+ connect?: Prisma.SubscriptionWhereUniqueInput
732
+ update?: Prisma.XOR<Prisma.XOR<Prisma.SubscriptionUpdateToOneWithWhereWithoutInvoicesInput, Prisma.SubscriptionUpdateWithoutInvoicesInput>, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
733
+ }
734
+
735
+ export type SubscriptionCreateWithoutUserInput = {
736
+ id?: string
737
+ status?: string
738
+ addonSeats?: number
739
+ provider?: string
740
+ providerCustomerId?: string | null
741
+ providerSubscriptionId?: string | null
742
+ providerPriceId?: string | null
743
+ providerSeatSubscriptionId?: string | null
744
+ currentPeriodStart?: Date | string | null
745
+ currentPeriodEnd?: Date | string | null
746
+ cancelAtPeriodEnd?: boolean
747
+ canceledAt?: Date | string | null
748
+ trialEndsAt?: Date | string | null
749
+ createdAt?: Date | string
750
+ updatedAt?: Date | string
751
+ plan: Prisma.PlanCreateNestedOneWithoutSubscriptionsInput
752
+ invoices?: Prisma.InvoiceCreateNestedManyWithoutSubscriptionInput
753
+ }
754
+
755
+ export type SubscriptionUncheckedCreateWithoutUserInput = {
756
+ id?: string
757
+ planId: string
758
+ status?: string
759
+ addonSeats?: number
760
+ provider?: string
761
+ providerCustomerId?: string | null
762
+ providerSubscriptionId?: string | null
763
+ providerPriceId?: string | null
764
+ providerSeatSubscriptionId?: string | null
765
+ currentPeriodStart?: Date | string | null
766
+ currentPeriodEnd?: Date | string | null
767
+ cancelAtPeriodEnd?: boolean
768
+ canceledAt?: Date | string | null
769
+ trialEndsAt?: Date | string | null
770
+ createdAt?: Date | string
771
+ updatedAt?: Date | string
772
+ invoices?: Prisma.InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput
773
+ }
774
+
775
+ export type SubscriptionCreateOrConnectWithoutUserInput = {
776
+ where: Prisma.SubscriptionWhereUniqueInput
777
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
778
+ }
779
+
780
+ export type SubscriptionUpsertWithoutUserInput = {
781
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutUserInput, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
782
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutUserInput, Prisma.SubscriptionUncheckedCreateWithoutUserInput>
783
+ where?: Prisma.SubscriptionWhereInput
784
+ }
785
+
786
+ export type SubscriptionUpdateToOneWithWhereWithoutUserInput = {
787
+ where?: Prisma.SubscriptionWhereInput
788
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutUserInput, Prisma.SubscriptionUncheckedUpdateWithoutUserInput>
789
+ }
790
+
791
+ export type SubscriptionUpdateWithoutUserInput = {
792
+ id?: Prisma.StringFieldUpdateOperationsInput | string
793
+ status?: Prisma.StringFieldUpdateOperationsInput | string
794
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
795
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
796
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
797
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
798
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
799
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
800
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
801
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
802
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
803
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
804
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
805
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
806
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
807
+ plan?: Prisma.PlanUpdateOneRequiredWithoutSubscriptionsNestedInput
808
+ invoices?: Prisma.InvoiceUpdateManyWithoutSubscriptionNestedInput
809
+ }
810
+
811
+ export type SubscriptionUncheckedUpdateWithoutUserInput = {
812
+ id?: Prisma.StringFieldUpdateOperationsInput | string
813
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
814
+ status?: Prisma.StringFieldUpdateOperationsInput | string
815
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
816
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
817
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
818
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
819
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
820
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
821
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
822
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
823
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
824
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
825
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
826
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
827
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
828
+ invoices?: Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput
829
+ }
830
+
831
+ export type SubscriptionCreateWithoutPlanInput = {
832
+ id?: string
833
+ status?: string
834
+ addonSeats?: number
835
+ provider?: string
836
+ providerCustomerId?: string | null
837
+ providerSubscriptionId?: string | null
838
+ providerPriceId?: string | null
839
+ providerSeatSubscriptionId?: string | null
840
+ currentPeriodStart?: Date | string | null
841
+ currentPeriodEnd?: Date | string | null
842
+ cancelAtPeriodEnd?: boolean
843
+ canceledAt?: Date | string | null
844
+ trialEndsAt?: Date | string | null
845
+ createdAt?: Date | string
846
+ updatedAt?: Date | string
847
+ user: Prisma.UserCreateNestedOneWithoutSubscriptionInput
848
+ invoices?: Prisma.InvoiceCreateNestedManyWithoutSubscriptionInput
849
+ }
850
+
851
+ export type SubscriptionUncheckedCreateWithoutPlanInput = {
852
+ id?: string
853
+ userId: string
854
+ status?: string
855
+ addonSeats?: number
856
+ provider?: string
857
+ providerCustomerId?: string | null
858
+ providerSubscriptionId?: string | null
859
+ providerPriceId?: string | null
860
+ providerSeatSubscriptionId?: string | null
861
+ currentPeriodStart?: Date | string | null
862
+ currentPeriodEnd?: Date | string | null
863
+ cancelAtPeriodEnd?: boolean
864
+ canceledAt?: Date | string | null
865
+ trialEndsAt?: Date | string | null
866
+ createdAt?: Date | string
867
+ updatedAt?: Date | string
868
+ invoices?: Prisma.InvoiceUncheckedCreateNestedManyWithoutSubscriptionInput
869
+ }
870
+
871
+ export type SubscriptionCreateOrConnectWithoutPlanInput = {
872
+ where: Prisma.SubscriptionWhereUniqueInput
873
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput>
874
+ }
875
+
876
+ export type SubscriptionCreateManyPlanInputEnvelope = {
877
+ data: Prisma.SubscriptionCreateManyPlanInput | Prisma.SubscriptionCreateManyPlanInput[]
878
+ }
879
+
880
+ export type SubscriptionUpsertWithWhereUniqueWithoutPlanInput = {
881
+ where: Prisma.SubscriptionWhereUniqueInput
882
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutPlanInput, Prisma.SubscriptionUncheckedUpdateWithoutPlanInput>
883
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutPlanInput, Prisma.SubscriptionUncheckedCreateWithoutPlanInput>
884
+ }
885
+
886
+ export type SubscriptionUpdateWithWhereUniqueWithoutPlanInput = {
887
+ where: Prisma.SubscriptionWhereUniqueInput
888
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutPlanInput, Prisma.SubscriptionUncheckedUpdateWithoutPlanInput>
889
+ }
890
+
891
+ export type SubscriptionUpdateManyWithWhereWithoutPlanInput = {
892
+ where: Prisma.SubscriptionScalarWhereInput
893
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyWithoutPlanInput>
894
+ }
895
+
896
+ export type SubscriptionScalarWhereInput = {
897
+ AND?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
898
+ OR?: Prisma.SubscriptionScalarWhereInput[]
899
+ NOT?: Prisma.SubscriptionScalarWhereInput | Prisma.SubscriptionScalarWhereInput[]
900
+ id?: Prisma.StringFilter<"Subscription"> | string
901
+ userId?: Prisma.StringFilter<"Subscription"> | string
902
+ planId?: Prisma.StringFilter<"Subscription"> | string
903
+ status?: Prisma.StringFilter<"Subscription"> | string
904
+ addonSeats?: Prisma.IntFilter<"Subscription"> | number
905
+ provider?: Prisma.StringFilter<"Subscription"> | string
906
+ providerCustomerId?: Prisma.StringNullableFilter<"Subscription"> | string | null
907
+ providerSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
908
+ providerPriceId?: Prisma.StringNullableFilter<"Subscription"> | string | null
909
+ providerSeatSubscriptionId?: Prisma.StringNullableFilter<"Subscription"> | string | null
910
+ currentPeriodStart?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
911
+ currentPeriodEnd?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
912
+ cancelAtPeriodEnd?: Prisma.BoolFilter<"Subscription"> | boolean
913
+ canceledAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
914
+ trialEndsAt?: Prisma.DateTimeNullableFilter<"Subscription"> | Date | string | null
915
+ createdAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
916
+ updatedAt?: Prisma.DateTimeFilter<"Subscription"> | Date | string
917
+ }
918
+
919
+ export type SubscriptionCreateWithoutInvoicesInput = {
920
+ id?: string
921
+ status?: string
922
+ addonSeats?: number
923
+ provider?: string
924
+ providerCustomerId?: string | null
925
+ providerSubscriptionId?: string | null
926
+ providerPriceId?: string | null
927
+ providerSeatSubscriptionId?: string | null
928
+ currentPeriodStart?: Date | string | null
929
+ currentPeriodEnd?: Date | string | null
930
+ cancelAtPeriodEnd?: boolean
931
+ canceledAt?: Date | string | null
932
+ trialEndsAt?: Date | string | null
933
+ createdAt?: Date | string
934
+ updatedAt?: Date | string
935
+ user: Prisma.UserCreateNestedOneWithoutSubscriptionInput
936
+ plan: Prisma.PlanCreateNestedOneWithoutSubscriptionsInput
937
+ }
938
+
939
+ export type SubscriptionUncheckedCreateWithoutInvoicesInput = {
940
+ id?: string
941
+ userId: string
942
+ planId: string
943
+ status?: string
944
+ addonSeats?: number
945
+ provider?: string
946
+ providerCustomerId?: string | null
947
+ providerSubscriptionId?: string | null
948
+ providerPriceId?: string | null
949
+ providerSeatSubscriptionId?: string | null
950
+ currentPeriodStart?: Date | string | null
951
+ currentPeriodEnd?: Date | string | null
952
+ cancelAtPeriodEnd?: boolean
953
+ canceledAt?: Date | string | null
954
+ trialEndsAt?: Date | string | null
955
+ createdAt?: Date | string
956
+ updatedAt?: Date | string
957
+ }
958
+
959
+ export type SubscriptionCreateOrConnectWithoutInvoicesInput = {
960
+ where: Prisma.SubscriptionWhereUniqueInput
961
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
962
+ }
963
+
964
+ export type SubscriptionUpsertWithoutInvoicesInput = {
965
+ update: Prisma.XOR<Prisma.SubscriptionUpdateWithoutInvoicesInput, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
966
+ create: Prisma.XOR<Prisma.SubscriptionCreateWithoutInvoicesInput, Prisma.SubscriptionUncheckedCreateWithoutInvoicesInput>
967
+ where?: Prisma.SubscriptionWhereInput
968
+ }
969
+
970
+ export type SubscriptionUpdateToOneWithWhereWithoutInvoicesInput = {
971
+ where?: Prisma.SubscriptionWhereInput
972
+ data: Prisma.XOR<Prisma.SubscriptionUpdateWithoutInvoicesInput, Prisma.SubscriptionUncheckedUpdateWithoutInvoicesInput>
973
+ }
974
+
975
+ export type SubscriptionUpdateWithoutInvoicesInput = {
976
+ id?: Prisma.StringFieldUpdateOperationsInput | string
977
+ status?: Prisma.StringFieldUpdateOperationsInput | string
978
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
979
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
980
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
981
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
982
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
983
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
984
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
985
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
986
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
987
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
988
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
989
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
990
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
991
+ user?: Prisma.UserUpdateOneRequiredWithoutSubscriptionNestedInput
992
+ plan?: Prisma.PlanUpdateOneRequiredWithoutSubscriptionsNestedInput
993
+ }
994
+
995
+ export type SubscriptionUncheckedUpdateWithoutInvoicesInput = {
996
+ id?: Prisma.StringFieldUpdateOperationsInput | string
997
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
998
+ planId?: Prisma.StringFieldUpdateOperationsInput | string
999
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1000
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1001
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1002
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1003
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1004
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1005
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1006
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1007
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1008
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1009
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1010
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1011
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1012
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1013
+ }
1014
+
1015
+ export type SubscriptionCreateManyPlanInput = {
1016
+ id?: string
1017
+ userId: string
1018
+ status?: string
1019
+ addonSeats?: number
1020
+ provider?: string
1021
+ providerCustomerId?: string | null
1022
+ providerSubscriptionId?: string | null
1023
+ providerPriceId?: string | null
1024
+ providerSeatSubscriptionId?: string | null
1025
+ currentPeriodStart?: Date | string | null
1026
+ currentPeriodEnd?: Date | string | null
1027
+ cancelAtPeriodEnd?: boolean
1028
+ canceledAt?: Date | string | null
1029
+ trialEndsAt?: Date | string | null
1030
+ createdAt?: Date | string
1031
+ updatedAt?: Date | string
1032
+ }
1033
+
1034
+ export type SubscriptionUpdateWithoutPlanInput = {
1035
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1036
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1037
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1038
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1039
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1040
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1041
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1042
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1043
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1044
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1045
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1046
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1047
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1048
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1049
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1050
+ user?: Prisma.UserUpdateOneRequiredWithoutSubscriptionNestedInput
1051
+ invoices?: Prisma.InvoiceUpdateManyWithoutSubscriptionNestedInput
1052
+ }
1053
+
1054
+ export type SubscriptionUncheckedUpdateWithoutPlanInput = {
1055
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1056
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1057
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1058
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1059
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1060
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1061
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1062
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1063
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1064
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1065
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1066
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1067
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1068
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1069
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1070
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1071
+ invoices?: Prisma.InvoiceUncheckedUpdateManyWithoutSubscriptionNestedInput
1072
+ }
1073
+
1074
+ export type SubscriptionUncheckedUpdateManyWithoutPlanInput = {
1075
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1076
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1077
+ status?: Prisma.StringFieldUpdateOperationsInput | string
1078
+ addonSeats?: Prisma.IntFieldUpdateOperationsInput | number
1079
+ provider?: Prisma.StringFieldUpdateOperationsInput | string
1080
+ providerCustomerId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1081
+ providerSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1082
+ providerPriceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1083
+ providerSeatSubscriptionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1084
+ currentPeriodStart?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1085
+ currentPeriodEnd?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1086
+ cancelAtPeriodEnd?: Prisma.BoolFieldUpdateOperationsInput | boolean
1087
+ canceledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1088
+ trialEndsAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1089
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1090
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1091
+ }
1092
+
1093
+
1094
+ /**
1095
+ * Count Type SubscriptionCountOutputType
1096
+ */
1097
+
1098
+ export type SubscriptionCountOutputType = {
1099
+ invoices: number
1100
+ }
1101
+
1102
+ export type SubscriptionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1103
+ invoices?: boolean | SubscriptionCountOutputTypeCountInvoicesArgs
1104
+ }
1105
+
1106
+ /**
1107
+ * SubscriptionCountOutputType without action
1108
+ */
1109
+ export type SubscriptionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1110
+ /**
1111
+ * Select specific fields to fetch from the SubscriptionCountOutputType
1112
+ */
1113
+ select?: Prisma.SubscriptionCountOutputTypeSelect<ExtArgs> | null
1114
+ }
1115
+
1116
+ /**
1117
+ * SubscriptionCountOutputType without action
1118
+ */
1119
+ export type SubscriptionCountOutputTypeCountInvoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1120
+ where?: Prisma.InvoiceWhereInput
1121
+ }
1122
+
1123
+
1124
+ export type SubscriptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1125
+ id?: boolean
1126
+ userId?: boolean
1127
+ planId?: boolean
1128
+ status?: boolean
1129
+ addonSeats?: boolean
1130
+ provider?: boolean
1131
+ providerCustomerId?: boolean
1132
+ providerSubscriptionId?: boolean
1133
+ providerPriceId?: boolean
1134
+ providerSeatSubscriptionId?: boolean
1135
+ currentPeriodStart?: boolean
1136
+ currentPeriodEnd?: boolean
1137
+ cancelAtPeriodEnd?: boolean
1138
+ canceledAt?: boolean
1139
+ trialEndsAt?: boolean
1140
+ createdAt?: boolean
1141
+ updatedAt?: boolean
1142
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1143
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1144
+ invoices?: boolean | Prisma.Subscription$invoicesArgs<ExtArgs>
1145
+ _count?: boolean | Prisma.SubscriptionCountOutputTypeDefaultArgs<ExtArgs>
1146
+ }, ExtArgs["result"]["subscription"]>
1147
+
1148
+ export type SubscriptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1149
+ id?: boolean
1150
+ userId?: boolean
1151
+ planId?: boolean
1152
+ status?: boolean
1153
+ addonSeats?: boolean
1154
+ provider?: boolean
1155
+ providerCustomerId?: boolean
1156
+ providerSubscriptionId?: boolean
1157
+ providerPriceId?: boolean
1158
+ providerSeatSubscriptionId?: boolean
1159
+ currentPeriodStart?: boolean
1160
+ currentPeriodEnd?: boolean
1161
+ cancelAtPeriodEnd?: boolean
1162
+ canceledAt?: boolean
1163
+ trialEndsAt?: boolean
1164
+ createdAt?: boolean
1165
+ updatedAt?: boolean
1166
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1167
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1168
+ }, ExtArgs["result"]["subscription"]>
1169
+
1170
+ export type SubscriptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1171
+ id?: boolean
1172
+ userId?: boolean
1173
+ planId?: boolean
1174
+ status?: boolean
1175
+ addonSeats?: boolean
1176
+ provider?: boolean
1177
+ providerCustomerId?: boolean
1178
+ providerSubscriptionId?: boolean
1179
+ providerPriceId?: boolean
1180
+ providerSeatSubscriptionId?: boolean
1181
+ currentPeriodStart?: boolean
1182
+ currentPeriodEnd?: boolean
1183
+ cancelAtPeriodEnd?: boolean
1184
+ canceledAt?: boolean
1185
+ trialEndsAt?: boolean
1186
+ createdAt?: boolean
1187
+ updatedAt?: boolean
1188
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1189
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1190
+ }, ExtArgs["result"]["subscription"]>
1191
+
1192
+ export type SubscriptionSelectScalar = {
1193
+ id?: boolean
1194
+ userId?: boolean
1195
+ planId?: boolean
1196
+ status?: boolean
1197
+ addonSeats?: boolean
1198
+ provider?: boolean
1199
+ providerCustomerId?: boolean
1200
+ providerSubscriptionId?: boolean
1201
+ providerPriceId?: boolean
1202
+ providerSeatSubscriptionId?: boolean
1203
+ currentPeriodStart?: boolean
1204
+ currentPeriodEnd?: boolean
1205
+ cancelAtPeriodEnd?: boolean
1206
+ canceledAt?: boolean
1207
+ trialEndsAt?: boolean
1208
+ createdAt?: boolean
1209
+ updatedAt?: boolean
1210
+ }
1211
+
1212
+ 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"]>
1213
+ export type SubscriptionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1214
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1215
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1216
+ invoices?: boolean | Prisma.Subscription$invoicesArgs<ExtArgs>
1217
+ _count?: boolean | Prisma.SubscriptionCountOutputTypeDefaultArgs<ExtArgs>
1218
+ }
1219
+ export type SubscriptionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1220
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1221
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1222
+ }
1223
+ export type SubscriptionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1224
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1225
+ plan?: boolean | Prisma.PlanDefaultArgs<ExtArgs>
1226
+ }
1227
+
1228
+ export type $SubscriptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1229
+ name: "Subscription"
1230
+ objects: {
1231
+ user: Prisma.$UserPayload<ExtArgs>
1232
+ plan: Prisma.$PlanPayload<ExtArgs>
1233
+ /**
1234
+ * 关联发票(子项目 3 新增)
1235
+ */
1236
+ invoices: Prisma.$InvoicePayload<ExtArgs>[]
1237
+ }
1238
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1239
+ id: string
1240
+ userId: string
1241
+ planId: string
1242
+ status: string
1243
+ addonSeats: number
1244
+ provider: string
1245
+ providerCustomerId: string | null
1246
+ providerSubscriptionId: string | null
1247
+ providerPriceId: string | null
1248
+ providerSeatSubscriptionId: string | null
1249
+ currentPeriodStart: Date | null
1250
+ currentPeriodEnd: Date | null
1251
+ cancelAtPeriodEnd: boolean
1252
+ canceledAt: Date | null
1253
+ trialEndsAt: Date | null
1254
+ createdAt: Date
1255
+ updatedAt: Date
1256
+ }, ExtArgs["result"]["subscription"]>
1257
+ composites: {}
1258
+ }
1259
+
1260
+ export type SubscriptionGetPayload<S extends boolean | null | undefined | SubscriptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload, S>
1261
+
1262
+ export type SubscriptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1263
+ Omit<SubscriptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1264
+ select?: SubscriptionCountAggregateInputType | true
1265
+ }
1266
+
1267
+ export interface SubscriptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1268
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Subscription'], meta: { name: 'Subscription' } }
1269
+ /**
1270
+ * Find zero or one Subscription that matches the filter.
1271
+ * @param {SubscriptionFindUniqueArgs} args - Arguments to find a Subscription
1272
+ * @example
1273
+ * // Get one Subscription
1274
+ * const subscription = await prisma.subscription.findUnique({
1275
+ * where: {
1276
+ * // ... provide filter here
1277
+ * }
1278
+ * })
1279
+ */
1280
+ 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>
1281
+
1282
+ /**
1283
+ * Find one Subscription that matches the filter or throw an error with `error.code='P2025'`
1284
+ * if no matches were found.
1285
+ * @param {SubscriptionFindUniqueOrThrowArgs} args - Arguments to find a Subscription
1286
+ * @example
1287
+ * // Get one Subscription
1288
+ * const subscription = await prisma.subscription.findUniqueOrThrow({
1289
+ * where: {
1290
+ * // ... provide filter here
1291
+ * }
1292
+ * })
1293
+ */
1294
+ 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>
1295
+
1296
+ /**
1297
+ * Find the first Subscription that matches the filter.
1298
+ * Note, that providing `undefined` is treated as the value not being there.
1299
+ * Read more here: https://pris.ly/d/null-undefined
1300
+ * @param {SubscriptionFindFirstArgs} args - Arguments to find a Subscription
1301
+ * @example
1302
+ * // Get one Subscription
1303
+ * const subscription = await prisma.subscription.findFirst({
1304
+ * where: {
1305
+ * // ... provide filter here
1306
+ * }
1307
+ * })
1308
+ */
1309
+ 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>
1310
+
1311
+ /**
1312
+ * Find the first Subscription that matches the filter or
1313
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1314
+ * Note, that providing `undefined` is treated as the value not being there.
1315
+ * Read more here: https://pris.ly/d/null-undefined
1316
+ * @param {SubscriptionFindFirstOrThrowArgs} args - Arguments to find a Subscription
1317
+ * @example
1318
+ * // Get one Subscription
1319
+ * const subscription = await prisma.subscription.findFirstOrThrow({
1320
+ * where: {
1321
+ * // ... provide filter here
1322
+ * }
1323
+ * })
1324
+ */
1325
+ 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>
1326
+
1327
+ /**
1328
+ * Find zero or more Subscriptions that matches the filter.
1329
+ * Note, that providing `undefined` is treated as the value not being there.
1330
+ * Read more here: https://pris.ly/d/null-undefined
1331
+ * @param {SubscriptionFindManyArgs} args - Arguments to filter and select certain fields only.
1332
+ * @example
1333
+ * // Get all Subscriptions
1334
+ * const subscriptions = await prisma.subscription.findMany()
1335
+ *
1336
+ * // Get first 10 Subscriptions
1337
+ * const subscriptions = await prisma.subscription.findMany({ take: 10 })
1338
+ *
1339
+ * // Only select the `id`
1340
+ * const subscriptionWithIdOnly = await prisma.subscription.findMany({ select: { id: true } })
1341
+ *
1342
+ */
1343
+ findMany<T extends SubscriptionFindManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1344
+
1345
+ /**
1346
+ * Create a Subscription.
1347
+ * @param {SubscriptionCreateArgs} args - Arguments to create a Subscription.
1348
+ * @example
1349
+ * // Create one Subscription
1350
+ * const Subscription = await prisma.subscription.create({
1351
+ * data: {
1352
+ * // ... data to create a Subscription
1353
+ * }
1354
+ * })
1355
+ *
1356
+ */
1357
+ 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>
1358
+
1359
+ /**
1360
+ * Create many Subscriptions.
1361
+ * @param {SubscriptionCreateManyArgs} args - Arguments to create many Subscriptions.
1362
+ * @example
1363
+ * // Create many Subscriptions
1364
+ * const subscription = await prisma.subscription.createMany({
1365
+ * data: [
1366
+ * // ... provide data here
1367
+ * ]
1368
+ * })
1369
+ *
1370
+ */
1371
+ createMany<T extends SubscriptionCreateManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1372
+
1373
+ /**
1374
+ * Create many Subscriptions and returns the data saved in the database.
1375
+ * @param {SubscriptionCreateManyAndReturnArgs} args - Arguments to create many Subscriptions.
1376
+ * @example
1377
+ * // Create many Subscriptions
1378
+ * const subscription = await prisma.subscription.createManyAndReturn({
1379
+ * data: [
1380
+ * // ... provide data here
1381
+ * ]
1382
+ * })
1383
+ *
1384
+ * // Create many Subscriptions and only return the `id`
1385
+ * const subscriptionWithIdOnly = await prisma.subscription.createManyAndReturn({
1386
+ * select: { id: true },
1387
+ * data: [
1388
+ * // ... provide data here
1389
+ * ]
1390
+ * })
1391
+ * Note, that providing `undefined` is treated as the value not being there.
1392
+ * Read more here: https://pris.ly/d/null-undefined
1393
+ *
1394
+ */
1395
+ createManyAndReturn<T extends SubscriptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SubscriptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1396
+
1397
+ /**
1398
+ * Delete a Subscription.
1399
+ * @param {SubscriptionDeleteArgs} args - Arguments to delete one Subscription.
1400
+ * @example
1401
+ * // Delete one Subscription
1402
+ * const Subscription = await prisma.subscription.delete({
1403
+ * where: {
1404
+ * // ... filter to delete one Subscription
1405
+ * }
1406
+ * })
1407
+ *
1408
+ */
1409
+ 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>
1410
+
1411
+ /**
1412
+ * Update one Subscription.
1413
+ * @param {SubscriptionUpdateArgs} args - Arguments to update one Subscription.
1414
+ * @example
1415
+ * // Update one Subscription
1416
+ * const subscription = await prisma.subscription.update({
1417
+ * where: {
1418
+ * // ... provide filter here
1419
+ * },
1420
+ * data: {
1421
+ * // ... provide data here
1422
+ * }
1423
+ * })
1424
+ *
1425
+ */
1426
+ 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>
1427
+
1428
+ /**
1429
+ * Delete zero or more Subscriptions.
1430
+ * @param {SubscriptionDeleteManyArgs} args - Arguments to filter Subscriptions to delete.
1431
+ * @example
1432
+ * // Delete a few Subscriptions
1433
+ * const { count } = await prisma.subscription.deleteMany({
1434
+ * where: {
1435
+ * // ... provide filter here
1436
+ * }
1437
+ * })
1438
+ *
1439
+ */
1440
+ deleteMany<T extends SubscriptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SubscriptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1441
+
1442
+ /**
1443
+ * Update zero or more Subscriptions.
1444
+ * Note, that providing `undefined` is treated as the value not being there.
1445
+ * Read more here: https://pris.ly/d/null-undefined
1446
+ * @param {SubscriptionUpdateManyArgs} args - Arguments to update one or more rows.
1447
+ * @example
1448
+ * // Update many Subscriptions
1449
+ * const subscription = await prisma.subscription.updateMany({
1450
+ * where: {
1451
+ * // ... provide filter here
1452
+ * },
1453
+ * data: {
1454
+ * // ... provide data here
1455
+ * }
1456
+ * })
1457
+ *
1458
+ */
1459
+ updateMany<T extends SubscriptionUpdateManyArgs>(args: Prisma.SelectSubset<T, SubscriptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1460
+
1461
+ /**
1462
+ * Update zero or more Subscriptions and returns the data updated in the database.
1463
+ * @param {SubscriptionUpdateManyAndReturnArgs} args - Arguments to update many Subscriptions.
1464
+ * @example
1465
+ * // Update many Subscriptions
1466
+ * const subscription = await prisma.subscription.updateManyAndReturn({
1467
+ * where: {
1468
+ * // ... provide filter here
1469
+ * },
1470
+ * data: [
1471
+ * // ... provide data here
1472
+ * ]
1473
+ * })
1474
+ *
1475
+ * // Update zero or more Subscriptions and only return the `id`
1476
+ * const subscriptionWithIdOnly = await prisma.subscription.updateManyAndReturn({
1477
+ * select: { id: true },
1478
+ * where: {
1479
+ * // ... provide filter here
1480
+ * },
1481
+ * data: [
1482
+ * // ... provide data here
1483
+ * ]
1484
+ * })
1485
+ * Note, that providing `undefined` is treated as the value not being there.
1486
+ * Read more here: https://pris.ly/d/null-undefined
1487
+ *
1488
+ */
1489
+ updateManyAndReturn<T extends SubscriptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SubscriptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubscriptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1490
+
1491
+ /**
1492
+ * Create or update one Subscription.
1493
+ * @param {SubscriptionUpsertArgs} args - Arguments to update or create a Subscription.
1494
+ * @example
1495
+ * // Update or create a Subscription
1496
+ * const subscription = await prisma.subscription.upsert({
1497
+ * create: {
1498
+ * // ... data to create a Subscription
1499
+ * },
1500
+ * update: {
1501
+ * // ... in case it already exists, update
1502
+ * },
1503
+ * where: {
1504
+ * // ... the filter for the Subscription we want to update
1505
+ * }
1506
+ * })
1507
+ */
1508
+ 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>
1509
+
1510
+
1511
+ /**
1512
+ * Count the number of Subscriptions.
1513
+ * Note, that providing `undefined` is treated as the value not being there.
1514
+ * Read more here: https://pris.ly/d/null-undefined
1515
+ * @param {SubscriptionCountArgs} args - Arguments to filter Subscriptions to count.
1516
+ * @example
1517
+ * // Count the number of Subscriptions
1518
+ * const count = await prisma.subscription.count({
1519
+ * where: {
1520
+ * // ... the filter for the Subscriptions we want to count
1521
+ * }
1522
+ * })
1523
+ **/
1524
+ count<T extends SubscriptionCountArgs>(
1525
+ args?: Prisma.Subset<T, SubscriptionCountArgs>,
1526
+ ): Prisma.PrismaPromise<
1527
+ T extends runtime.Types.Utils.Record<'select', any>
1528
+ ? T['select'] extends true
1529
+ ? number
1530
+ : Prisma.GetScalarType<T['select'], SubscriptionCountAggregateOutputType>
1531
+ : number
1532
+ >
1533
+
1534
+ /**
1535
+ * Allows you to perform aggregations operations on a Subscription.
1536
+ * Note, that providing `undefined` is treated as the value not being there.
1537
+ * Read more here: https://pris.ly/d/null-undefined
1538
+ * @param {SubscriptionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1539
+ * @example
1540
+ * // Ordered by age ascending
1541
+ * // Where email contains prisma.io
1542
+ * // Limited to the 10 users
1543
+ * const aggregations = await prisma.user.aggregate({
1544
+ * _avg: {
1545
+ * age: true,
1546
+ * },
1547
+ * where: {
1548
+ * email: {
1549
+ * contains: "prisma.io",
1550
+ * },
1551
+ * },
1552
+ * orderBy: {
1553
+ * age: "asc",
1554
+ * },
1555
+ * take: 10,
1556
+ * })
1557
+ **/
1558
+ aggregate<T extends SubscriptionAggregateArgs>(args: Prisma.Subset<T, SubscriptionAggregateArgs>): Prisma.PrismaPromise<GetSubscriptionAggregateType<T>>
1559
+
1560
+ /**
1561
+ * Group by Subscription.
1562
+ * Note, that providing `undefined` is treated as the value not being there.
1563
+ * Read more here: https://pris.ly/d/null-undefined
1564
+ * @param {SubscriptionGroupByArgs} args - Group by arguments.
1565
+ * @example
1566
+ * // Group by city, order by createdAt, get count
1567
+ * const result = await prisma.user.groupBy({
1568
+ * by: ['city', 'createdAt'],
1569
+ * orderBy: {
1570
+ * createdAt: true
1571
+ * },
1572
+ * _count: {
1573
+ * _all: true
1574
+ * },
1575
+ * })
1576
+ *
1577
+ **/
1578
+ groupBy<
1579
+ T extends SubscriptionGroupByArgs,
1580
+ HasSelectOrTake extends Prisma.Or<
1581
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1582
+ Prisma.Extends<'take', Prisma.Keys<T>>
1583
+ >,
1584
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1585
+ ? { orderBy: SubscriptionGroupByArgs['orderBy'] }
1586
+ : { orderBy?: SubscriptionGroupByArgs['orderBy'] },
1587
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1588
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1589
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1590
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1591
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1592
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1593
+ InputErrors extends ByEmpty extends Prisma.True
1594
+ ? `Error: "by" must not be empty.`
1595
+ : HavingValid extends Prisma.False
1596
+ ? {
1597
+ [P in HavingFields]: P extends ByFields
1598
+ ? never
1599
+ : P extends string
1600
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1601
+ : [
1602
+ Error,
1603
+ 'Field ',
1604
+ P,
1605
+ ` in "having" needs to be provided in "by"`,
1606
+ ]
1607
+ }[HavingFields]
1608
+ : 'take' extends Prisma.Keys<T>
1609
+ ? 'orderBy' extends Prisma.Keys<T>
1610
+ ? ByValid extends Prisma.True
1611
+ ? {}
1612
+ : {
1613
+ [P in OrderFields]: P extends ByFields
1614
+ ? never
1615
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1616
+ }[OrderFields]
1617
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1618
+ : 'skip' extends Prisma.Keys<T>
1619
+ ? 'orderBy' extends Prisma.Keys<T>
1620
+ ? ByValid extends Prisma.True
1621
+ ? {}
1622
+ : {
1623
+ [P in OrderFields]: P extends ByFields
1624
+ ? never
1625
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1626
+ }[OrderFields]
1627
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
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
+ >(args: Prisma.SubsetIntersection<T, SubscriptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSubscriptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1636
+ /**
1637
+ * Fields of the Subscription model
1638
+ */
1639
+ readonly fields: SubscriptionFieldRefs;
1640
+ }
1641
+
1642
+ /**
1643
+ * The delegate class that acts as a "Promise-like" for Subscription.
1644
+ * Why is this prefixed with `Prisma__`?
1645
+ * Because we want to prevent naming conflicts as mentioned in
1646
+ * https://github.com/prisma/prisma-client-js/issues/707
1647
+ */
1648
+ export interface Prisma__SubscriptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1649
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1650
+ 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>
1651
+ 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>
1652
+ 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>
1653
+ /**
1654
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1655
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1656
+ * @param onrejected The callback to execute when the Promise is rejected.
1657
+ * @returns A Promise for the completion of which ever callback is executed.
1658
+ */
1659
+ 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>
1660
+ /**
1661
+ * Attaches a callback for only the rejection of the Promise.
1662
+ * @param onrejected The callback to execute when the Promise is rejected.
1663
+ * @returns A Promise for the completion of the callback.
1664
+ */
1665
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1666
+ /**
1667
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1668
+ * resolved value cannot be modified from the callback.
1669
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1670
+ * @returns A Promise for the completion of the callback.
1671
+ */
1672
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1673
+ }
1674
+
1675
+
1676
+
1677
+
1678
+ /**
1679
+ * Fields of the Subscription model
1680
+ */
1681
+ export interface SubscriptionFieldRefs {
1682
+ readonly id: Prisma.FieldRef<"Subscription", 'String'>
1683
+ readonly userId: Prisma.FieldRef<"Subscription", 'String'>
1684
+ readonly planId: Prisma.FieldRef<"Subscription", 'String'>
1685
+ readonly status: Prisma.FieldRef<"Subscription", 'String'>
1686
+ readonly addonSeats: Prisma.FieldRef<"Subscription", 'Int'>
1687
+ readonly provider: Prisma.FieldRef<"Subscription", 'String'>
1688
+ readonly providerCustomerId: Prisma.FieldRef<"Subscription", 'String'>
1689
+ readonly providerSubscriptionId: Prisma.FieldRef<"Subscription", 'String'>
1690
+ readonly providerPriceId: Prisma.FieldRef<"Subscription", 'String'>
1691
+ readonly providerSeatSubscriptionId: Prisma.FieldRef<"Subscription", 'String'>
1692
+ readonly currentPeriodStart: Prisma.FieldRef<"Subscription", 'DateTime'>
1693
+ readonly currentPeriodEnd: Prisma.FieldRef<"Subscription", 'DateTime'>
1694
+ readonly cancelAtPeriodEnd: Prisma.FieldRef<"Subscription", 'Boolean'>
1695
+ readonly canceledAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1696
+ readonly trialEndsAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1697
+ readonly createdAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1698
+ readonly updatedAt: Prisma.FieldRef<"Subscription", 'DateTime'>
1699
+ }
1700
+
1701
+
1702
+ // Custom InputTypes
1703
+ /**
1704
+ * Subscription findUnique
1705
+ */
1706
+ export type SubscriptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1707
+ /**
1708
+ * Select specific fields to fetch from the Subscription
1709
+ */
1710
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1711
+ /**
1712
+ * Omit specific fields from the Subscription
1713
+ */
1714
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1715
+ /**
1716
+ * Choose, which related nodes to fetch as well
1717
+ */
1718
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1719
+ /**
1720
+ * Filter, which Subscription to fetch.
1721
+ */
1722
+ where: Prisma.SubscriptionWhereUniqueInput
1723
+ }
1724
+
1725
+ /**
1726
+ * Subscription findUniqueOrThrow
1727
+ */
1728
+ export type SubscriptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1729
+ /**
1730
+ * Select specific fields to fetch from the Subscription
1731
+ */
1732
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1733
+ /**
1734
+ * Omit specific fields from the Subscription
1735
+ */
1736
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1737
+ /**
1738
+ * Choose, which related nodes to fetch as well
1739
+ */
1740
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1741
+ /**
1742
+ * Filter, which Subscription to fetch.
1743
+ */
1744
+ where: Prisma.SubscriptionWhereUniqueInput
1745
+ }
1746
+
1747
+ /**
1748
+ * Subscription findFirst
1749
+ */
1750
+ export type SubscriptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1751
+ /**
1752
+ * Select specific fields to fetch from the Subscription
1753
+ */
1754
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1755
+ /**
1756
+ * Omit specific fields from the Subscription
1757
+ */
1758
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1759
+ /**
1760
+ * Choose, which related nodes to fetch as well
1761
+ */
1762
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1763
+ /**
1764
+ * Filter, which Subscription to fetch.
1765
+ */
1766
+ where?: Prisma.SubscriptionWhereInput
1767
+ /**
1768
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1769
+ *
1770
+ * Determine the order of Subscriptions to fetch.
1771
+ */
1772
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1773
+ /**
1774
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1775
+ *
1776
+ * Sets the position for searching for Subscriptions.
1777
+ */
1778
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1779
+ /**
1780
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1781
+ *
1782
+ * Take `±n` Subscriptions from the position of the cursor.
1783
+ */
1784
+ take?: number
1785
+ /**
1786
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1787
+ *
1788
+ * Skip the first `n` Subscriptions.
1789
+ */
1790
+ skip?: number
1791
+ /**
1792
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1793
+ *
1794
+ * Filter by unique combinations of Subscriptions.
1795
+ */
1796
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1797
+ }
1798
+
1799
+ /**
1800
+ * Subscription findFirstOrThrow
1801
+ */
1802
+ export type SubscriptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1803
+ /**
1804
+ * Select specific fields to fetch from the Subscription
1805
+ */
1806
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1807
+ /**
1808
+ * Omit specific fields from the Subscription
1809
+ */
1810
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1811
+ /**
1812
+ * Choose, which related nodes to fetch as well
1813
+ */
1814
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1815
+ /**
1816
+ * Filter, which Subscription to fetch.
1817
+ */
1818
+ where?: Prisma.SubscriptionWhereInput
1819
+ /**
1820
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1821
+ *
1822
+ * Determine the order of Subscriptions to fetch.
1823
+ */
1824
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1825
+ /**
1826
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1827
+ *
1828
+ * Sets the position for searching for Subscriptions.
1829
+ */
1830
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1831
+ /**
1832
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1833
+ *
1834
+ * Take `±n` Subscriptions from the position of the cursor.
1835
+ */
1836
+ take?: number
1837
+ /**
1838
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1839
+ *
1840
+ * Skip the first `n` Subscriptions.
1841
+ */
1842
+ skip?: number
1843
+ /**
1844
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1845
+ *
1846
+ * Filter by unique combinations of Subscriptions.
1847
+ */
1848
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1849
+ }
1850
+
1851
+ /**
1852
+ * Subscription findMany
1853
+ */
1854
+ export type SubscriptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1855
+ /**
1856
+ * Select specific fields to fetch from the Subscription
1857
+ */
1858
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1859
+ /**
1860
+ * Omit specific fields from the Subscription
1861
+ */
1862
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1863
+ /**
1864
+ * Choose, which related nodes to fetch as well
1865
+ */
1866
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1867
+ /**
1868
+ * Filter, which Subscriptions to fetch.
1869
+ */
1870
+ where?: Prisma.SubscriptionWhereInput
1871
+ /**
1872
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1873
+ *
1874
+ * Determine the order of Subscriptions to fetch.
1875
+ */
1876
+ orderBy?: Prisma.SubscriptionOrderByWithRelationInput | Prisma.SubscriptionOrderByWithRelationInput[]
1877
+ /**
1878
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1879
+ *
1880
+ * Sets the position for listing Subscriptions.
1881
+ */
1882
+ cursor?: Prisma.SubscriptionWhereUniqueInput
1883
+ /**
1884
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1885
+ *
1886
+ * Take `±n` Subscriptions from the position of the cursor.
1887
+ */
1888
+ take?: number
1889
+ /**
1890
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1891
+ *
1892
+ * Skip the first `n` Subscriptions.
1893
+ */
1894
+ skip?: number
1895
+ /**
1896
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1897
+ *
1898
+ * Filter by unique combinations of Subscriptions.
1899
+ */
1900
+ distinct?: Prisma.SubscriptionScalarFieldEnum | Prisma.SubscriptionScalarFieldEnum[]
1901
+ }
1902
+
1903
+ /**
1904
+ * Subscription create
1905
+ */
1906
+ export type SubscriptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1907
+ /**
1908
+ * Select specific fields to fetch from the Subscription
1909
+ */
1910
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1911
+ /**
1912
+ * Omit specific fields from the Subscription
1913
+ */
1914
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1915
+ /**
1916
+ * Choose, which related nodes to fetch as well
1917
+ */
1918
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1919
+ /**
1920
+ * The data needed to create a Subscription.
1921
+ */
1922
+ data: Prisma.XOR<Prisma.SubscriptionCreateInput, Prisma.SubscriptionUncheckedCreateInput>
1923
+ }
1924
+
1925
+ /**
1926
+ * Subscription createMany
1927
+ */
1928
+ export type SubscriptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1929
+ /**
1930
+ * The data used to create many Subscriptions.
1931
+ */
1932
+ data: Prisma.SubscriptionCreateManyInput | Prisma.SubscriptionCreateManyInput[]
1933
+ }
1934
+
1935
+ /**
1936
+ * Subscription createManyAndReturn
1937
+ */
1938
+ export type SubscriptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1939
+ /**
1940
+ * Select specific fields to fetch from the Subscription
1941
+ */
1942
+ select?: Prisma.SubscriptionSelectCreateManyAndReturn<ExtArgs> | null
1943
+ /**
1944
+ * Omit specific fields from the Subscription
1945
+ */
1946
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1947
+ /**
1948
+ * The data used to create many Subscriptions.
1949
+ */
1950
+ data: Prisma.SubscriptionCreateManyInput | Prisma.SubscriptionCreateManyInput[]
1951
+ /**
1952
+ * Choose, which related nodes to fetch as well
1953
+ */
1954
+ include?: Prisma.SubscriptionIncludeCreateManyAndReturn<ExtArgs> | null
1955
+ }
1956
+
1957
+ /**
1958
+ * Subscription update
1959
+ */
1960
+ export type SubscriptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1961
+ /**
1962
+ * Select specific fields to fetch from the Subscription
1963
+ */
1964
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
1965
+ /**
1966
+ * Omit specific fields from the Subscription
1967
+ */
1968
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
1969
+ /**
1970
+ * Choose, which related nodes to fetch as well
1971
+ */
1972
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
1973
+ /**
1974
+ * The data needed to update a Subscription.
1975
+ */
1976
+ data: Prisma.XOR<Prisma.SubscriptionUpdateInput, Prisma.SubscriptionUncheckedUpdateInput>
1977
+ /**
1978
+ * Choose, which Subscription to update.
1979
+ */
1980
+ where: Prisma.SubscriptionWhereUniqueInput
1981
+ }
1982
+
1983
+ /**
1984
+ * Subscription updateMany
1985
+ */
1986
+ export type SubscriptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1987
+ /**
1988
+ * The data used to update Subscriptions.
1989
+ */
1990
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyInput>
1991
+ /**
1992
+ * Filter which Subscriptions to update
1993
+ */
1994
+ where?: Prisma.SubscriptionWhereInput
1995
+ /**
1996
+ * Limit how many Subscriptions to update.
1997
+ */
1998
+ limit?: number
1999
+ }
2000
+
2001
+ /**
2002
+ * Subscription updateManyAndReturn
2003
+ */
2004
+ export type SubscriptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2005
+ /**
2006
+ * Select specific fields to fetch from the Subscription
2007
+ */
2008
+ select?: Prisma.SubscriptionSelectUpdateManyAndReturn<ExtArgs> | null
2009
+ /**
2010
+ * Omit specific fields from the Subscription
2011
+ */
2012
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2013
+ /**
2014
+ * The data used to update Subscriptions.
2015
+ */
2016
+ data: Prisma.XOR<Prisma.SubscriptionUpdateManyMutationInput, Prisma.SubscriptionUncheckedUpdateManyInput>
2017
+ /**
2018
+ * Filter which Subscriptions to update
2019
+ */
2020
+ where?: Prisma.SubscriptionWhereInput
2021
+ /**
2022
+ * Limit how many Subscriptions to update.
2023
+ */
2024
+ limit?: number
2025
+ /**
2026
+ * Choose, which related nodes to fetch as well
2027
+ */
2028
+ include?: Prisma.SubscriptionIncludeUpdateManyAndReturn<ExtArgs> | null
2029
+ }
2030
+
2031
+ /**
2032
+ * Subscription upsert
2033
+ */
2034
+ export type SubscriptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2035
+ /**
2036
+ * Select specific fields to fetch from the Subscription
2037
+ */
2038
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2039
+ /**
2040
+ * Omit specific fields from the Subscription
2041
+ */
2042
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2043
+ /**
2044
+ * Choose, which related nodes to fetch as well
2045
+ */
2046
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2047
+ /**
2048
+ * The filter to search for the Subscription to update in case it exists.
2049
+ */
2050
+ where: Prisma.SubscriptionWhereUniqueInput
2051
+ /**
2052
+ * In case the Subscription found by the `where` argument doesn't exist, create a new Subscription with this data.
2053
+ */
2054
+ create: Prisma.XOR<Prisma.SubscriptionCreateInput, Prisma.SubscriptionUncheckedCreateInput>
2055
+ /**
2056
+ * In case the Subscription was found with the provided `where` argument, update it with this data.
2057
+ */
2058
+ update: Prisma.XOR<Prisma.SubscriptionUpdateInput, Prisma.SubscriptionUncheckedUpdateInput>
2059
+ }
2060
+
2061
+ /**
2062
+ * Subscription delete
2063
+ */
2064
+ export type SubscriptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2065
+ /**
2066
+ * Select specific fields to fetch from the Subscription
2067
+ */
2068
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2069
+ /**
2070
+ * Omit specific fields from the Subscription
2071
+ */
2072
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2073
+ /**
2074
+ * Choose, which related nodes to fetch as well
2075
+ */
2076
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2077
+ /**
2078
+ * Filter which Subscription to delete.
2079
+ */
2080
+ where: Prisma.SubscriptionWhereUniqueInput
2081
+ }
2082
+
2083
+ /**
2084
+ * Subscription deleteMany
2085
+ */
2086
+ export type SubscriptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2087
+ /**
2088
+ * Filter which Subscriptions to delete
2089
+ */
2090
+ where?: Prisma.SubscriptionWhereInput
2091
+ /**
2092
+ * Limit how many Subscriptions to delete.
2093
+ */
2094
+ limit?: number
2095
+ }
2096
+
2097
+ /**
2098
+ * Subscription.invoices
2099
+ */
2100
+ export type Subscription$invoicesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2101
+ /**
2102
+ * Select specific fields to fetch from the Invoice
2103
+ */
2104
+ select?: Prisma.InvoiceSelect<ExtArgs> | null
2105
+ /**
2106
+ * Omit specific fields from the Invoice
2107
+ */
2108
+ omit?: Prisma.InvoiceOmit<ExtArgs> | null
2109
+ /**
2110
+ * Choose, which related nodes to fetch as well
2111
+ */
2112
+ include?: Prisma.InvoiceInclude<ExtArgs> | null
2113
+ where?: Prisma.InvoiceWhereInput
2114
+ orderBy?: Prisma.InvoiceOrderByWithRelationInput | Prisma.InvoiceOrderByWithRelationInput[]
2115
+ cursor?: Prisma.InvoiceWhereUniqueInput
2116
+ take?: number
2117
+ skip?: number
2118
+ distinct?: Prisma.InvoiceScalarFieldEnum | Prisma.InvoiceScalarFieldEnum[]
2119
+ }
2120
+
2121
+ /**
2122
+ * Subscription without action
2123
+ */
2124
+ export type SubscriptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2125
+ /**
2126
+ * Select specific fields to fetch from the Subscription
2127
+ */
2128
+ select?: Prisma.SubscriptionSelect<ExtArgs> | null
2129
+ /**
2130
+ * Omit specific fields from the Subscription
2131
+ */
2132
+ omit?: Prisma.SubscriptionOmit<ExtArgs> | null
2133
+ /**
2134
+ * Choose, which related nodes to fetch as well
2135
+ */
2136
+ include?: Prisma.SubscriptionInclude<ExtArgs> | null
2137
+ }