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