@allbluecn/database 0.4.0 → 0.4.2

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