@allbluecn/database 0.3.14 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,2616 @@
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 `PRD` 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 PRD
17
+ *
18
+ */
19
+ export type PRDModel = runtime.Types.Result.DefaultSelection<Prisma.$PRDPayload>
20
+
21
+ export type AggregatePRD = {
22
+ _count: PRDCountAggregateOutputType | null
23
+ _min: PRDMinAggregateOutputType | null
24
+ _max: PRDMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type PRDMinAggregateOutputType = {
28
+ id: string | null
29
+ icon: string | null
30
+ name: string | null
31
+ description: string | null
32
+ userId: string | null
33
+ isDeleted: boolean | null
34
+ deletedAt: Date | null
35
+ createdAt: Date | null
36
+ updatedAt: Date | null
37
+ }
38
+
39
+ export type PRDMaxAggregateOutputType = {
40
+ id: string | null
41
+ icon: string | null
42
+ name: string | null
43
+ description: string | null
44
+ userId: string | null
45
+ isDeleted: boolean | null
46
+ deletedAt: Date | null
47
+ createdAt: Date | null
48
+ updatedAt: Date | null
49
+ }
50
+
51
+ export type PRDCountAggregateOutputType = {
52
+ id: number
53
+ icon: number
54
+ name: number
55
+ description: number
56
+ settings: number
57
+ userId: number
58
+ isDeleted: number
59
+ deletedAt: number
60
+ createdAt: number
61
+ updatedAt: number
62
+ _all: number
63
+ }
64
+
65
+
66
+ export type PRDMinAggregateInputType = {
67
+ id?: true
68
+ icon?: true
69
+ name?: true
70
+ description?: true
71
+ userId?: true
72
+ isDeleted?: true
73
+ deletedAt?: true
74
+ createdAt?: true
75
+ updatedAt?: true
76
+ }
77
+
78
+ export type PRDMaxAggregateInputType = {
79
+ id?: true
80
+ icon?: true
81
+ name?: true
82
+ description?: true
83
+ userId?: true
84
+ isDeleted?: true
85
+ deletedAt?: true
86
+ createdAt?: true
87
+ updatedAt?: true
88
+ }
89
+
90
+ export type PRDCountAggregateInputType = {
91
+ id?: true
92
+ icon?: true
93
+ name?: true
94
+ description?: true
95
+ settings?: true
96
+ userId?: true
97
+ isDeleted?: true
98
+ deletedAt?: true
99
+ createdAt?: true
100
+ updatedAt?: true
101
+ _all?: true
102
+ }
103
+
104
+ export type PRDAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
105
+ /**
106
+ * Filter which PRD to aggregate.
107
+ */
108
+ where?: Prisma.PRDWhereInput
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
111
+ *
112
+ * Determine the order of PRDS to fetch.
113
+ */
114
+ orderBy?: Prisma.PRDOrderByWithRelationInput | Prisma.PRDOrderByWithRelationInput[]
115
+ /**
116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
117
+ *
118
+ * Sets the start position
119
+ */
120
+ cursor?: Prisma.PRDWhereUniqueInput
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Take `±n` PRDS from the position of the cursor.
125
+ */
126
+ take?: number
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
129
+ *
130
+ * Skip the first `n` PRDS.
131
+ */
132
+ skip?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Count returned PRDS
137
+ **/
138
+ _count?: true | PRDCountAggregateInputType
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
141
+ *
142
+ * Select which fields to find the minimum value
143
+ **/
144
+ _min?: PRDMinAggregateInputType
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Select which fields to find the maximum value
149
+ **/
150
+ _max?: PRDMaxAggregateInputType
151
+ }
152
+
153
+ export type GetPRDAggregateType<T extends PRDAggregateArgs> = {
154
+ [P in keyof T & keyof AggregatePRD]: P extends '_count' | 'count'
155
+ ? T[P] extends true
156
+ ? number
157
+ : Prisma.GetScalarType<T[P], AggregatePRD[P]>
158
+ : Prisma.GetScalarType<T[P], AggregatePRD[P]>
159
+ }
160
+
161
+
162
+
163
+
164
+ export type PRDGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.PRDWhereInput
166
+ orderBy?: Prisma.PRDOrderByWithAggregationInput | Prisma.PRDOrderByWithAggregationInput[]
167
+ by: Prisma.PRDScalarFieldEnum[] | Prisma.PRDScalarFieldEnum
168
+ having?: Prisma.PRDScalarWhereWithAggregatesInput
169
+ take?: number
170
+ skip?: number
171
+ _count?: PRDCountAggregateInputType | true
172
+ _min?: PRDMinAggregateInputType
173
+ _max?: PRDMaxAggregateInputType
174
+ }
175
+
176
+ export type PRDGroupByOutputType = {
177
+ id: string
178
+ icon: string
179
+ name: string
180
+ description: string | null
181
+ settings: runtime.JsonValue | null
182
+ userId: string
183
+ isDeleted: boolean
184
+ deletedAt: Date | null
185
+ createdAt: Date
186
+ updatedAt: Date
187
+ _count: PRDCountAggregateOutputType | null
188
+ _min: PRDMinAggregateOutputType | null
189
+ _max: PRDMaxAggregateOutputType | null
190
+ }
191
+
192
+ export type GetPRDGroupByPayload<T extends PRDGroupByArgs> = Prisma.PrismaPromise<
193
+ Array<
194
+ Prisma.PickEnumerable<PRDGroupByOutputType, T['by']> &
195
+ {
196
+ [P in ((keyof T) & (keyof PRDGroupByOutputType))]: P extends '_count'
197
+ ? T[P] extends boolean
198
+ ? number
199
+ : Prisma.GetScalarType<T[P], PRDGroupByOutputType[P]>
200
+ : Prisma.GetScalarType<T[P], PRDGroupByOutputType[P]>
201
+ }
202
+ >
203
+ >
204
+
205
+
206
+
207
+ export type PRDWhereInput = {
208
+ AND?: Prisma.PRDWhereInput | Prisma.PRDWhereInput[]
209
+ OR?: Prisma.PRDWhereInput[]
210
+ NOT?: Prisma.PRDWhereInput | Prisma.PRDWhereInput[]
211
+ id?: Prisma.StringFilter<"PRD"> | string
212
+ icon?: Prisma.StringFilter<"PRD"> | string
213
+ name?: Prisma.StringFilter<"PRD"> | string
214
+ description?: Prisma.StringNullableFilter<"PRD"> | string | null
215
+ settings?: Prisma.JsonNullableFilter<"PRD">
216
+ userId?: Prisma.StringFilter<"PRD"> | string
217
+ isDeleted?: Prisma.BoolFilter<"PRD"> | boolean
218
+ deletedAt?: Prisma.DateTimeNullableFilter<"PRD"> | Date | string | null
219
+ createdAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
220
+ updatedAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
221
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
222
+ pages?: Prisma.PRDPageListRelationFilter
223
+ versions?: Prisma.PRDVersionListRelationFilter
224
+ reviews?: Prisma.ReviewListRelationFilter
225
+ comments?: Prisma.CommentListRelationFilter
226
+ shares?: Prisma.ShareListRelationFilter
227
+ prdTags?: Prisma.PRDTagListRelationFilter
228
+ agentConversations?: Prisma.AgentConversationListRelationFilter
229
+ }
230
+
231
+ export type PRDOrderByWithRelationInput = {
232
+ id?: Prisma.SortOrder
233
+ icon?: Prisma.SortOrder
234
+ name?: Prisma.SortOrder
235
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
236
+ settings?: Prisma.SortOrderInput | Prisma.SortOrder
237
+ userId?: Prisma.SortOrder
238
+ isDeleted?: Prisma.SortOrder
239
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
240
+ createdAt?: Prisma.SortOrder
241
+ updatedAt?: Prisma.SortOrder
242
+ user?: Prisma.UserOrderByWithRelationInput
243
+ pages?: Prisma.PRDPageOrderByRelationAggregateInput
244
+ versions?: Prisma.PRDVersionOrderByRelationAggregateInput
245
+ reviews?: Prisma.ReviewOrderByRelationAggregateInput
246
+ comments?: Prisma.CommentOrderByRelationAggregateInput
247
+ shares?: Prisma.ShareOrderByRelationAggregateInput
248
+ prdTags?: Prisma.PRDTagOrderByRelationAggregateInput
249
+ agentConversations?: Prisma.AgentConversationOrderByRelationAggregateInput
250
+ }
251
+
252
+ export type PRDWhereUniqueInput = Prisma.AtLeast<{
253
+ id?: string
254
+ AND?: Prisma.PRDWhereInput | Prisma.PRDWhereInput[]
255
+ OR?: Prisma.PRDWhereInput[]
256
+ NOT?: Prisma.PRDWhereInput | Prisma.PRDWhereInput[]
257
+ icon?: Prisma.StringFilter<"PRD"> | string
258
+ name?: Prisma.StringFilter<"PRD"> | string
259
+ description?: Prisma.StringNullableFilter<"PRD"> | string | null
260
+ settings?: Prisma.JsonNullableFilter<"PRD">
261
+ userId?: Prisma.StringFilter<"PRD"> | string
262
+ isDeleted?: Prisma.BoolFilter<"PRD"> | boolean
263
+ deletedAt?: Prisma.DateTimeNullableFilter<"PRD"> | Date | string | null
264
+ createdAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
265
+ updatedAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
266
+ user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
267
+ pages?: Prisma.PRDPageListRelationFilter
268
+ versions?: Prisma.PRDVersionListRelationFilter
269
+ reviews?: Prisma.ReviewListRelationFilter
270
+ comments?: Prisma.CommentListRelationFilter
271
+ shares?: Prisma.ShareListRelationFilter
272
+ prdTags?: Prisma.PRDTagListRelationFilter
273
+ agentConversations?: Prisma.AgentConversationListRelationFilter
274
+ }, "id">
275
+
276
+ export type PRDOrderByWithAggregationInput = {
277
+ id?: Prisma.SortOrder
278
+ icon?: Prisma.SortOrder
279
+ name?: Prisma.SortOrder
280
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
281
+ settings?: Prisma.SortOrderInput | Prisma.SortOrder
282
+ userId?: Prisma.SortOrder
283
+ isDeleted?: Prisma.SortOrder
284
+ deletedAt?: Prisma.SortOrderInput | Prisma.SortOrder
285
+ createdAt?: Prisma.SortOrder
286
+ updatedAt?: Prisma.SortOrder
287
+ _count?: Prisma.PRDCountOrderByAggregateInput
288
+ _max?: Prisma.PRDMaxOrderByAggregateInput
289
+ _min?: Prisma.PRDMinOrderByAggregateInput
290
+ }
291
+
292
+ export type PRDScalarWhereWithAggregatesInput = {
293
+ AND?: Prisma.PRDScalarWhereWithAggregatesInput | Prisma.PRDScalarWhereWithAggregatesInput[]
294
+ OR?: Prisma.PRDScalarWhereWithAggregatesInput[]
295
+ NOT?: Prisma.PRDScalarWhereWithAggregatesInput | Prisma.PRDScalarWhereWithAggregatesInput[]
296
+ id?: Prisma.StringWithAggregatesFilter<"PRD"> | string
297
+ icon?: Prisma.StringWithAggregatesFilter<"PRD"> | string
298
+ name?: Prisma.StringWithAggregatesFilter<"PRD"> | string
299
+ description?: Prisma.StringNullableWithAggregatesFilter<"PRD"> | string | null
300
+ settings?: Prisma.JsonNullableWithAggregatesFilter<"PRD">
301
+ userId?: Prisma.StringWithAggregatesFilter<"PRD"> | string
302
+ isDeleted?: Prisma.BoolWithAggregatesFilter<"PRD"> | boolean
303
+ deletedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"PRD"> | Date | string | null
304
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"PRD"> | Date | string
305
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"PRD"> | Date | string
306
+ }
307
+
308
+ export type PRDCreateInput = {
309
+ id?: string
310
+ icon?: string
311
+ name: string
312
+ description?: string | null
313
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
314
+ isDeleted?: boolean
315
+ deletedAt?: Date | string | null
316
+ createdAt?: Date | string
317
+ updatedAt?: Date | string
318
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
319
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
320
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
321
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
322
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
323
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
324
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
325
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
326
+ }
327
+
328
+ export type PRDUncheckedCreateInput = {
329
+ id?: string
330
+ icon?: string
331
+ name: string
332
+ description?: string | null
333
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
334
+ userId: string
335
+ isDeleted?: boolean
336
+ deletedAt?: Date | string | null
337
+ createdAt?: Date | string
338
+ updatedAt?: Date | string
339
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
340
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
341
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
342
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
343
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
344
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
345
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
346
+ }
347
+
348
+ export type PRDUpdateInput = {
349
+ id?: Prisma.StringFieldUpdateOperationsInput | string
350
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
351
+ name?: Prisma.StringFieldUpdateOperationsInput | string
352
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
353
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
354
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
355
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
356
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
357
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
358
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
359
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
360
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
361
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
362
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
363
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
364
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
365
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
366
+ }
367
+
368
+ export type PRDUncheckedUpdateInput = {
369
+ id?: Prisma.StringFieldUpdateOperationsInput | string
370
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
371
+ name?: Prisma.StringFieldUpdateOperationsInput | string
372
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
374
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
375
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
376
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
377
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
378
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
380
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
381
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
382
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
383
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
384
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
385
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
386
+ }
387
+
388
+ export type PRDCreateManyInput = {
389
+ id?: string
390
+ icon?: string
391
+ name: string
392
+ description?: string | null
393
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
394
+ userId: string
395
+ isDeleted?: boolean
396
+ deletedAt?: Date | string | null
397
+ createdAt?: Date | string
398
+ updatedAt?: Date | string
399
+ }
400
+
401
+ export type PRDUpdateManyMutationInput = {
402
+ id?: Prisma.StringFieldUpdateOperationsInput | string
403
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
404
+ name?: Prisma.StringFieldUpdateOperationsInput | string
405
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
406
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
407
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
408
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
409
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
410
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
411
+ }
412
+
413
+ export type PRDUncheckedUpdateManyInput = {
414
+ id?: Prisma.StringFieldUpdateOperationsInput | string
415
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
416
+ name?: Prisma.StringFieldUpdateOperationsInput | string
417
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
418
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
419
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
420
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
421
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
422
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
423
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
424
+ }
425
+
426
+ export type PRDListRelationFilter = {
427
+ every?: Prisma.PRDWhereInput
428
+ some?: Prisma.PRDWhereInput
429
+ none?: Prisma.PRDWhereInput
430
+ }
431
+
432
+ export type PRDOrderByRelationAggregateInput = {
433
+ _count?: Prisma.SortOrder
434
+ }
435
+
436
+ export type PRDCountOrderByAggregateInput = {
437
+ id?: Prisma.SortOrder
438
+ icon?: Prisma.SortOrder
439
+ name?: Prisma.SortOrder
440
+ description?: Prisma.SortOrder
441
+ settings?: Prisma.SortOrder
442
+ userId?: Prisma.SortOrder
443
+ isDeleted?: Prisma.SortOrder
444
+ deletedAt?: Prisma.SortOrder
445
+ createdAt?: Prisma.SortOrder
446
+ updatedAt?: Prisma.SortOrder
447
+ }
448
+
449
+ export type PRDMaxOrderByAggregateInput = {
450
+ id?: Prisma.SortOrder
451
+ icon?: Prisma.SortOrder
452
+ name?: Prisma.SortOrder
453
+ description?: Prisma.SortOrder
454
+ userId?: Prisma.SortOrder
455
+ isDeleted?: Prisma.SortOrder
456
+ deletedAt?: Prisma.SortOrder
457
+ createdAt?: Prisma.SortOrder
458
+ updatedAt?: Prisma.SortOrder
459
+ }
460
+
461
+ export type PRDMinOrderByAggregateInput = {
462
+ id?: Prisma.SortOrder
463
+ icon?: Prisma.SortOrder
464
+ name?: Prisma.SortOrder
465
+ description?: Prisma.SortOrder
466
+ userId?: Prisma.SortOrder
467
+ isDeleted?: Prisma.SortOrder
468
+ deletedAt?: Prisma.SortOrder
469
+ createdAt?: Prisma.SortOrder
470
+ updatedAt?: Prisma.SortOrder
471
+ }
472
+
473
+ export type PRDScalarRelationFilter = {
474
+ is?: Prisma.PRDWhereInput
475
+ isNot?: Prisma.PRDWhereInput
476
+ }
477
+
478
+ export type PRDCreateNestedManyWithoutUserInput = {
479
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput> | Prisma.PRDCreateWithoutUserInput[] | Prisma.PRDUncheckedCreateWithoutUserInput[]
480
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutUserInput | Prisma.PRDCreateOrConnectWithoutUserInput[]
481
+ createMany?: Prisma.PRDCreateManyUserInputEnvelope
482
+ connect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
483
+ }
484
+
485
+ export type PRDUncheckedCreateNestedManyWithoutUserInput = {
486
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput> | Prisma.PRDCreateWithoutUserInput[] | Prisma.PRDUncheckedCreateWithoutUserInput[]
487
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutUserInput | Prisma.PRDCreateOrConnectWithoutUserInput[]
488
+ createMany?: Prisma.PRDCreateManyUserInputEnvelope
489
+ connect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
490
+ }
491
+
492
+ export type PRDUpdateManyWithoutUserNestedInput = {
493
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput> | Prisma.PRDCreateWithoutUserInput[] | Prisma.PRDUncheckedCreateWithoutUserInput[]
494
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutUserInput | Prisma.PRDCreateOrConnectWithoutUserInput[]
495
+ upsert?: Prisma.PRDUpsertWithWhereUniqueWithoutUserInput | Prisma.PRDUpsertWithWhereUniqueWithoutUserInput[]
496
+ createMany?: Prisma.PRDCreateManyUserInputEnvelope
497
+ set?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
498
+ disconnect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
499
+ delete?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
500
+ connect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
501
+ update?: Prisma.PRDUpdateWithWhereUniqueWithoutUserInput | Prisma.PRDUpdateWithWhereUniqueWithoutUserInput[]
502
+ updateMany?: Prisma.PRDUpdateManyWithWhereWithoutUserInput | Prisma.PRDUpdateManyWithWhereWithoutUserInput[]
503
+ deleteMany?: Prisma.PRDScalarWhereInput | Prisma.PRDScalarWhereInput[]
504
+ }
505
+
506
+ export type PRDUncheckedUpdateManyWithoutUserNestedInput = {
507
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput> | Prisma.PRDCreateWithoutUserInput[] | Prisma.PRDUncheckedCreateWithoutUserInput[]
508
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutUserInput | Prisma.PRDCreateOrConnectWithoutUserInput[]
509
+ upsert?: Prisma.PRDUpsertWithWhereUniqueWithoutUserInput | Prisma.PRDUpsertWithWhereUniqueWithoutUserInput[]
510
+ createMany?: Prisma.PRDCreateManyUserInputEnvelope
511
+ set?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
512
+ disconnect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
513
+ delete?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
514
+ connect?: Prisma.PRDWhereUniqueInput | Prisma.PRDWhereUniqueInput[]
515
+ update?: Prisma.PRDUpdateWithWhereUniqueWithoutUserInput | Prisma.PRDUpdateWithWhereUniqueWithoutUserInput[]
516
+ updateMany?: Prisma.PRDUpdateManyWithWhereWithoutUserInput | Prisma.PRDUpdateManyWithWhereWithoutUserInput[]
517
+ deleteMany?: Prisma.PRDScalarWhereInput | Prisma.PRDScalarWhereInput[]
518
+ }
519
+
520
+ export type PRDCreateNestedOneWithoutAgentConversationsInput = {
521
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutAgentConversationsInput, Prisma.PRDUncheckedCreateWithoutAgentConversationsInput>
522
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutAgentConversationsInput
523
+ connect?: Prisma.PRDWhereUniqueInput
524
+ }
525
+
526
+ export type PRDUpdateOneRequiredWithoutAgentConversationsNestedInput = {
527
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutAgentConversationsInput, Prisma.PRDUncheckedCreateWithoutAgentConversationsInput>
528
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutAgentConversationsInput
529
+ upsert?: Prisma.PRDUpsertWithoutAgentConversationsInput
530
+ connect?: Prisma.PRDWhereUniqueInput
531
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutAgentConversationsInput, Prisma.PRDUpdateWithoutAgentConversationsInput>, Prisma.PRDUncheckedUpdateWithoutAgentConversationsInput>
532
+ }
533
+
534
+ export type PRDCreateNestedOneWithoutPagesInput = {
535
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutPagesInput, Prisma.PRDUncheckedCreateWithoutPagesInput>
536
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutPagesInput
537
+ connect?: Prisma.PRDWhereUniqueInput
538
+ }
539
+
540
+ export type PRDUpdateOneRequiredWithoutPagesNestedInput = {
541
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutPagesInput, Prisma.PRDUncheckedCreateWithoutPagesInput>
542
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutPagesInput
543
+ upsert?: Prisma.PRDUpsertWithoutPagesInput
544
+ connect?: Prisma.PRDWhereUniqueInput
545
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutPagesInput, Prisma.PRDUpdateWithoutPagesInput>, Prisma.PRDUncheckedUpdateWithoutPagesInput>
546
+ }
547
+
548
+ export type PRDCreateNestedOneWithoutVersionsInput = {
549
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutVersionsInput, Prisma.PRDUncheckedCreateWithoutVersionsInput>
550
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutVersionsInput
551
+ connect?: Prisma.PRDWhereUniqueInput
552
+ }
553
+
554
+ export type PRDUpdateOneRequiredWithoutVersionsNestedInput = {
555
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutVersionsInput, Prisma.PRDUncheckedCreateWithoutVersionsInput>
556
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutVersionsInput
557
+ upsert?: Prisma.PRDUpsertWithoutVersionsInput
558
+ connect?: Prisma.PRDWhereUniqueInput
559
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutVersionsInput, Prisma.PRDUpdateWithoutVersionsInput>, Prisma.PRDUncheckedUpdateWithoutVersionsInput>
560
+ }
561
+
562
+ export type PRDCreateNestedOneWithoutReviewsInput = {
563
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutReviewsInput, Prisma.PRDUncheckedCreateWithoutReviewsInput>
564
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutReviewsInput
565
+ connect?: Prisma.PRDWhereUniqueInput
566
+ }
567
+
568
+ export type PRDUpdateOneRequiredWithoutReviewsNestedInput = {
569
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutReviewsInput, Prisma.PRDUncheckedCreateWithoutReviewsInput>
570
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutReviewsInput
571
+ upsert?: Prisma.PRDUpsertWithoutReviewsInput
572
+ connect?: Prisma.PRDWhereUniqueInput
573
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutReviewsInput, Prisma.PRDUpdateWithoutReviewsInput>, Prisma.PRDUncheckedUpdateWithoutReviewsInput>
574
+ }
575
+
576
+ export type PRDCreateNestedOneWithoutCommentsInput = {
577
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutCommentsInput, Prisma.PRDUncheckedCreateWithoutCommentsInput>
578
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutCommentsInput
579
+ connect?: Prisma.PRDWhereUniqueInput
580
+ }
581
+
582
+ export type PRDUpdateOneRequiredWithoutCommentsNestedInput = {
583
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutCommentsInput, Prisma.PRDUncheckedCreateWithoutCommentsInput>
584
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutCommentsInput
585
+ upsert?: Prisma.PRDUpsertWithoutCommentsInput
586
+ connect?: Prisma.PRDWhereUniqueInput
587
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutCommentsInput, Prisma.PRDUpdateWithoutCommentsInput>, Prisma.PRDUncheckedUpdateWithoutCommentsInput>
588
+ }
589
+
590
+ export type PRDCreateNestedOneWithoutSharesInput = {
591
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutSharesInput, Prisma.PRDUncheckedCreateWithoutSharesInput>
592
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutSharesInput
593
+ connect?: Prisma.PRDWhereUniqueInput
594
+ }
595
+
596
+ export type PRDUpdateOneRequiredWithoutSharesNestedInput = {
597
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutSharesInput, Prisma.PRDUncheckedCreateWithoutSharesInput>
598
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutSharesInput
599
+ upsert?: Prisma.PRDUpsertWithoutSharesInput
600
+ connect?: Prisma.PRDWhereUniqueInput
601
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutSharesInput, Prisma.PRDUpdateWithoutSharesInput>, Prisma.PRDUncheckedUpdateWithoutSharesInput>
602
+ }
603
+
604
+ export type PRDCreateNestedOneWithoutPrdTagsInput = {
605
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutPrdTagsInput, Prisma.PRDUncheckedCreateWithoutPrdTagsInput>
606
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutPrdTagsInput
607
+ connect?: Prisma.PRDWhereUniqueInput
608
+ }
609
+
610
+ export type PRDUpdateOneRequiredWithoutPrdTagsNestedInput = {
611
+ create?: Prisma.XOR<Prisma.PRDCreateWithoutPrdTagsInput, Prisma.PRDUncheckedCreateWithoutPrdTagsInput>
612
+ connectOrCreate?: Prisma.PRDCreateOrConnectWithoutPrdTagsInput
613
+ upsert?: Prisma.PRDUpsertWithoutPrdTagsInput
614
+ connect?: Prisma.PRDWhereUniqueInput
615
+ update?: Prisma.XOR<Prisma.XOR<Prisma.PRDUpdateToOneWithWhereWithoutPrdTagsInput, Prisma.PRDUpdateWithoutPrdTagsInput>, Prisma.PRDUncheckedUpdateWithoutPrdTagsInput>
616
+ }
617
+
618
+ export type PRDCreateWithoutUserInput = {
619
+ id?: string
620
+ icon?: string
621
+ name: string
622
+ description?: string | null
623
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
624
+ isDeleted?: boolean
625
+ deletedAt?: Date | string | null
626
+ createdAt?: Date | string
627
+ updatedAt?: Date | string
628
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
629
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
630
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
631
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
632
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
633
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
634
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
635
+ }
636
+
637
+ export type PRDUncheckedCreateWithoutUserInput = {
638
+ id?: string
639
+ icon?: string
640
+ name: string
641
+ description?: string | null
642
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
643
+ isDeleted?: boolean
644
+ deletedAt?: Date | string | null
645
+ createdAt?: Date | string
646
+ updatedAt?: Date | string
647
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
648
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
649
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
650
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
651
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
652
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
653
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
654
+ }
655
+
656
+ export type PRDCreateOrConnectWithoutUserInput = {
657
+ where: Prisma.PRDWhereUniqueInput
658
+ create: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput>
659
+ }
660
+
661
+ export type PRDCreateManyUserInputEnvelope = {
662
+ data: Prisma.PRDCreateManyUserInput | Prisma.PRDCreateManyUserInput[]
663
+ }
664
+
665
+ export type PRDUpsertWithWhereUniqueWithoutUserInput = {
666
+ where: Prisma.PRDWhereUniqueInput
667
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutUserInput, Prisma.PRDUncheckedUpdateWithoutUserInput>
668
+ create: Prisma.XOR<Prisma.PRDCreateWithoutUserInput, Prisma.PRDUncheckedCreateWithoutUserInput>
669
+ }
670
+
671
+ export type PRDUpdateWithWhereUniqueWithoutUserInput = {
672
+ where: Prisma.PRDWhereUniqueInput
673
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutUserInput, Prisma.PRDUncheckedUpdateWithoutUserInput>
674
+ }
675
+
676
+ export type PRDUpdateManyWithWhereWithoutUserInput = {
677
+ where: Prisma.PRDScalarWhereInput
678
+ data: Prisma.XOR<Prisma.PRDUpdateManyMutationInput, Prisma.PRDUncheckedUpdateManyWithoutUserInput>
679
+ }
680
+
681
+ export type PRDScalarWhereInput = {
682
+ AND?: Prisma.PRDScalarWhereInput | Prisma.PRDScalarWhereInput[]
683
+ OR?: Prisma.PRDScalarWhereInput[]
684
+ NOT?: Prisma.PRDScalarWhereInput | Prisma.PRDScalarWhereInput[]
685
+ id?: Prisma.StringFilter<"PRD"> | string
686
+ icon?: Prisma.StringFilter<"PRD"> | string
687
+ name?: Prisma.StringFilter<"PRD"> | string
688
+ description?: Prisma.StringNullableFilter<"PRD"> | string | null
689
+ settings?: Prisma.JsonNullableFilter<"PRD">
690
+ userId?: Prisma.StringFilter<"PRD"> | string
691
+ isDeleted?: Prisma.BoolFilter<"PRD"> | boolean
692
+ deletedAt?: Prisma.DateTimeNullableFilter<"PRD"> | Date | string | null
693
+ createdAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
694
+ updatedAt?: Prisma.DateTimeFilter<"PRD"> | Date | string
695
+ }
696
+
697
+ export type PRDCreateWithoutAgentConversationsInput = {
698
+ id?: string
699
+ icon?: string
700
+ name: string
701
+ description?: string | null
702
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
703
+ isDeleted?: boolean
704
+ deletedAt?: Date | string | null
705
+ createdAt?: Date | string
706
+ updatedAt?: Date | string
707
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
708
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
709
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
710
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
711
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
712
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
713
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
714
+ }
715
+
716
+ export type PRDUncheckedCreateWithoutAgentConversationsInput = {
717
+ id?: string
718
+ icon?: string
719
+ name: string
720
+ description?: string | null
721
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
722
+ userId: string
723
+ isDeleted?: boolean
724
+ deletedAt?: Date | string | null
725
+ createdAt?: Date | string
726
+ updatedAt?: Date | string
727
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
728
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
729
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
730
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
731
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
732
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
733
+ }
734
+
735
+ export type PRDCreateOrConnectWithoutAgentConversationsInput = {
736
+ where: Prisma.PRDWhereUniqueInput
737
+ create: Prisma.XOR<Prisma.PRDCreateWithoutAgentConversationsInput, Prisma.PRDUncheckedCreateWithoutAgentConversationsInput>
738
+ }
739
+
740
+ export type PRDUpsertWithoutAgentConversationsInput = {
741
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutAgentConversationsInput, Prisma.PRDUncheckedUpdateWithoutAgentConversationsInput>
742
+ create: Prisma.XOR<Prisma.PRDCreateWithoutAgentConversationsInput, Prisma.PRDUncheckedCreateWithoutAgentConversationsInput>
743
+ where?: Prisma.PRDWhereInput
744
+ }
745
+
746
+ export type PRDUpdateToOneWithWhereWithoutAgentConversationsInput = {
747
+ where?: Prisma.PRDWhereInput
748
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutAgentConversationsInput, Prisma.PRDUncheckedUpdateWithoutAgentConversationsInput>
749
+ }
750
+
751
+ export type PRDUpdateWithoutAgentConversationsInput = {
752
+ id?: Prisma.StringFieldUpdateOperationsInput | string
753
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
754
+ name?: Prisma.StringFieldUpdateOperationsInput | string
755
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
756
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
757
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
758
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
759
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
760
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
761
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
762
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
763
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
764
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
765
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
766
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
767
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
768
+ }
769
+
770
+ export type PRDUncheckedUpdateWithoutAgentConversationsInput = {
771
+ id?: Prisma.StringFieldUpdateOperationsInput | string
772
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
773
+ name?: Prisma.StringFieldUpdateOperationsInput | string
774
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
775
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
776
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
777
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
778
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
779
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
780
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
781
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
782
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
783
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
784
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
785
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
786
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
787
+ }
788
+
789
+ export type PRDCreateWithoutPagesInput = {
790
+ id?: string
791
+ icon?: string
792
+ name: string
793
+ description?: string | null
794
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
795
+ isDeleted?: boolean
796
+ deletedAt?: Date | string | null
797
+ createdAt?: Date | string
798
+ updatedAt?: Date | string
799
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
800
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
801
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
802
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
803
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
804
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
805
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
806
+ }
807
+
808
+ export type PRDUncheckedCreateWithoutPagesInput = {
809
+ id?: string
810
+ icon?: string
811
+ name: string
812
+ description?: string | null
813
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
814
+ userId: string
815
+ isDeleted?: boolean
816
+ deletedAt?: Date | string | null
817
+ createdAt?: Date | string
818
+ updatedAt?: Date | string
819
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
820
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
821
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
822
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
823
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
824
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
825
+ }
826
+
827
+ export type PRDCreateOrConnectWithoutPagesInput = {
828
+ where: Prisma.PRDWhereUniqueInput
829
+ create: Prisma.XOR<Prisma.PRDCreateWithoutPagesInput, Prisma.PRDUncheckedCreateWithoutPagesInput>
830
+ }
831
+
832
+ export type PRDUpsertWithoutPagesInput = {
833
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutPagesInput, Prisma.PRDUncheckedUpdateWithoutPagesInput>
834
+ create: Prisma.XOR<Prisma.PRDCreateWithoutPagesInput, Prisma.PRDUncheckedCreateWithoutPagesInput>
835
+ where?: Prisma.PRDWhereInput
836
+ }
837
+
838
+ export type PRDUpdateToOneWithWhereWithoutPagesInput = {
839
+ where?: Prisma.PRDWhereInput
840
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutPagesInput, Prisma.PRDUncheckedUpdateWithoutPagesInput>
841
+ }
842
+
843
+ export type PRDUpdateWithoutPagesInput = {
844
+ id?: Prisma.StringFieldUpdateOperationsInput | string
845
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
846
+ name?: Prisma.StringFieldUpdateOperationsInput | string
847
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
848
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
849
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
850
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
851
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
852
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
853
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
854
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
855
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
856
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
857
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
858
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
859
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
860
+ }
861
+
862
+ export type PRDUncheckedUpdateWithoutPagesInput = {
863
+ id?: Prisma.StringFieldUpdateOperationsInput | string
864
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
865
+ name?: Prisma.StringFieldUpdateOperationsInput | string
866
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
867
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
868
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
869
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
870
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
871
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
872
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
873
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
874
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
875
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
876
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
877
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
878
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
879
+ }
880
+
881
+ export type PRDCreateWithoutVersionsInput = {
882
+ id?: string
883
+ icon?: string
884
+ name: string
885
+ description?: string | null
886
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
887
+ isDeleted?: boolean
888
+ deletedAt?: Date | string | null
889
+ createdAt?: Date | string
890
+ updatedAt?: Date | string
891
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
892
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
893
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
894
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
895
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
896
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
897
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
898
+ }
899
+
900
+ export type PRDUncheckedCreateWithoutVersionsInput = {
901
+ id?: string
902
+ icon?: string
903
+ name: string
904
+ description?: string | null
905
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
906
+ userId: string
907
+ isDeleted?: boolean
908
+ deletedAt?: Date | string | null
909
+ createdAt?: Date | string
910
+ updatedAt?: Date | string
911
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
912
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
913
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
914
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
915
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
916
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
917
+ }
918
+
919
+ export type PRDCreateOrConnectWithoutVersionsInput = {
920
+ where: Prisma.PRDWhereUniqueInput
921
+ create: Prisma.XOR<Prisma.PRDCreateWithoutVersionsInput, Prisma.PRDUncheckedCreateWithoutVersionsInput>
922
+ }
923
+
924
+ export type PRDUpsertWithoutVersionsInput = {
925
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutVersionsInput, Prisma.PRDUncheckedUpdateWithoutVersionsInput>
926
+ create: Prisma.XOR<Prisma.PRDCreateWithoutVersionsInput, Prisma.PRDUncheckedCreateWithoutVersionsInput>
927
+ where?: Prisma.PRDWhereInput
928
+ }
929
+
930
+ export type PRDUpdateToOneWithWhereWithoutVersionsInput = {
931
+ where?: Prisma.PRDWhereInput
932
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutVersionsInput, Prisma.PRDUncheckedUpdateWithoutVersionsInput>
933
+ }
934
+
935
+ export type PRDUpdateWithoutVersionsInput = {
936
+ id?: Prisma.StringFieldUpdateOperationsInput | string
937
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
938
+ name?: Prisma.StringFieldUpdateOperationsInput | string
939
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
940
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
941
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
942
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
943
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
944
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
945
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
946
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
947
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
948
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
949
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
950
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
951
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
952
+ }
953
+
954
+ export type PRDUncheckedUpdateWithoutVersionsInput = {
955
+ id?: Prisma.StringFieldUpdateOperationsInput | string
956
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
957
+ name?: Prisma.StringFieldUpdateOperationsInput | string
958
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
959
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
960
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
961
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
962
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
963
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
964
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
965
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
966
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
967
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
968
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
969
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
970
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
971
+ }
972
+
973
+ export type PRDCreateWithoutReviewsInput = {
974
+ id?: string
975
+ icon?: string
976
+ name: string
977
+ description?: string | null
978
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
979
+ isDeleted?: boolean
980
+ deletedAt?: Date | string | null
981
+ createdAt?: Date | string
982
+ updatedAt?: Date | string
983
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
984
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
985
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
986
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
987
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
988
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
989
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
990
+ }
991
+
992
+ export type PRDUncheckedCreateWithoutReviewsInput = {
993
+ id?: string
994
+ icon?: string
995
+ name: string
996
+ description?: string | null
997
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
998
+ userId: string
999
+ isDeleted?: boolean
1000
+ deletedAt?: Date | string | null
1001
+ createdAt?: Date | string
1002
+ updatedAt?: Date | string
1003
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
1004
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
1005
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
1006
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
1007
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
1008
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
1009
+ }
1010
+
1011
+ export type PRDCreateOrConnectWithoutReviewsInput = {
1012
+ where: Prisma.PRDWhereUniqueInput
1013
+ create: Prisma.XOR<Prisma.PRDCreateWithoutReviewsInput, Prisma.PRDUncheckedCreateWithoutReviewsInput>
1014
+ }
1015
+
1016
+ export type PRDUpsertWithoutReviewsInput = {
1017
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutReviewsInput, Prisma.PRDUncheckedUpdateWithoutReviewsInput>
1018
+ create: Prisma.XOR<Prisma.PRDCreateWithoutReviewsInput, Prisma.PRDUncheckedCreateWithoutReviewsInput>
1019
+ where?: Prisma.PRDWhereInput
1020
+ }
1021
+
1022
+ export type PRDUpdateToOneWithWhereWithoutReviewsInput = {
1023
+ where?: Prisma.PRDWhereInput
1024
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutReviewsInput, Prisma.PRDUncheckedUpdateWithoutReviewsInput>
1025
+ }
1026
+
1027
+ export type PRDUpdateWithoutReviewsInput = {
1028
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1029
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1030
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1031
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1032
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1033
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1034
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1035
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1036
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1037
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
1038
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
1039
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
1040
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
1041
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
1042
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
1043
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
1044
+ }
1045
+
1046
+ export type PRDUncheckedUpdateWithoutReviewsInput = {
1047
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1048
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1049
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1050
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1051
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1052
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1053
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1054
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1055
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1056
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1057
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
1058
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
1059
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
1060
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
1061
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
1062
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
1063
+ }
1064
+
1065
+ export type PRDCreateWithoutCommentsInput = {
1066
+ id?: string
1067
+ icon?: string
1068
+ name: string
1069
+ description?: string | null
1070
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1071
+ isDeleted?: boolean
1072
+ deletedAt?: Date | string | null
1073
+ createdAt?: Date | string
1074
+ updatedAt?: Date | string
1075
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
1076
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
1077
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
1078
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
1079
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
1080
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
1081
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
1082
+ }
1083
+
1084
+ export type PRDUncheckedCreateWithoutCommentsInput = {
1085
+ id?: string
1086
+ icon?: string
1087
+ name: string
1088
+ description?: string | null
1089
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1090
+ userId: string
1091
+ isDeleted?: boolean
1092
+ deletedAt?: Date | string | null
1093
+ createdAt?: Date | string
1094
+ updatedAt?: Date | string
1095
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
1096
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
1097
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
1098
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
1099
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
1100
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
1101
+ }
1102
+
1103
+ export type PRDCreateOrConnectWithoutCommentsInput = {
1104
+ where: Prisma.PRDWhereUniqueInput
1105
+ create: Prisma.XOR<Prisma.PRDCreateWithoutCommentsInput, Prisma.PRDUncheckedCreateWithoutCommentsInput>
1106
+ }
1107
+
1108
+ export type PRDUpsertWithoutCommentsInput = {
1109
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutCommentsInput, Prisma.PRDUncheckedUpdateWithoutCommentsInput>
1110
+ create: Prisma.XOR<Prisma.PRDCreateWithoutCommentsInput, Prisma.PRDUncheckedCreateWithoutCommentsInput>
1111
+ where?: Prisma.PRDWhereInput
1112
+ }
1113
+
1114
+ export type PRDUpdateToOneWithWhereWithoutCommentsInput = {
1115
+ where?: Prisma.PRDWhereInput
1116
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutCommentsInput, Prisma.PRDUncheckedUpdateWithoutCommentsInput>
1117
+ }
1118
+
1119
+ export type PRDUpdateWithoutCommentsInput = {
1120
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1121
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1122
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1123
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1124
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1125
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1126
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1127
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1128
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1129
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
1130
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
1131
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
1132
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
1133
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
1134
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
1135
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
1136
+ }
1137
+
1138
+ export type PRDUncheckedUpdateWithoutCommentsInput = {
1139
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1140
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1141
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1142
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1143
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1144
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1145
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1146
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1147
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1148
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1149
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
1150
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
1151
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
1152
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
1153
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
1154
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
1155
+ }
1156
+
1157
+ export type PRDCreateWithoutSharesInput = {
1158
+ id?: string
1159
+ icon?: string
1160
+ name: string
1161
+ description?: string | null
1162
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1163
+ isDeleted?: boolean
1164
+ deletedAt?: Date | string | null
1165
+ createdAt?: Date | string
1166
+ updatedAt?: Date | string
1167
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
1168
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
1169
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
1170
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
1171
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
1172
+ prdTags?: Prisma.PRDTagCreateNestedManyWithoutPrdInput
1173
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
1174
+ }
1175
+
1176
+ export type PRDUncheckedCreateWithoutSharesInput = {
1177
+ id?: string
1178
+ icon?: string
1179
+ name: string
1180
+ description?: string | null
1181
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1182
+ userId: string
1183
+ isDeleted?: boolean
1184
+ deletedAt?: Date | string | null
1185
+ createdAt?: Date | string
1186
+ updatedAt?: Date | string
1187
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
1188
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
1189
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
1190
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
1191
+ prdTags?: Prisma.PRDTagUncheckedCreateNestedManyWithoutPrdInput
1192
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
1193
+ }
1194
+
1195
+ export type PRDCreateOrConnectWithoutSharesInput = {
1196
+ where: Prisma.PRDWhereUniqueInput
1197
+ create: Prisma.XOR<Prisma.PRDCreateWithoutSharesInput, Prisma.PRDUncheckedCreateWithoutSharesInput>
1198
+ }
1199
+
1200
+ export type PRDUpsertWithoutSharesInput = {
1201
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutSharesInput, Prisma.PRDUncheckedUpdateWithoutSharesInput>
1202
+ create: Prisma.XOR<Prisma.PRDCreateWithoutSharesInput, Prisma.PRDUncheckedCreateWithoutSharesInput>
1203
+ where?: Prisma.PRDWhereInput
1204
+ }
1205
+
1206
+ export type PRDUpdateToOneWithWhereWithoutSharesInput = {
1207
+ where?: Prisma.PRDWhereInput
1208
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutSharesInput, Prisma.PRDUncheckedUpdateWithoutSharesInput>
1209
+ }
1210
+
1211
+ export type PRDUpdateWithoutSharesInput = {
1212
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1213
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1214
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1215
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1216
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1217
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1218
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1219
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1220
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1221
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
1222
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
1223
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
1224
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
1225
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
1226
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
1227
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
1228
+ }
1229
+
1230
+ export type PRDUncheckedUpdateWithoutSharesInput = {
1231
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1232
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1233
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1234
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1235
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1236
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1237
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1238
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1239
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1240
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1241
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
1242
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
1243
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
1244
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
1245
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
1246
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
1247
+ }
1248
+
1249
+ export type PRDCreateWithoutPrdTagsInput = {
1250
+ id?: string
1251
+ icon?: string
1252
+ name: string
1253
+ description?: string | null
1254
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1255
+ isDeleted?: boolean
1256
+ deletedAt?: Date | string | null
1257
+ createdAt?: Date | string
1258
+ updatedAt?: Date | string
1259
+ user: Prisma.UserCreateNestedOneWithoutPrdsInput
1260
+ pages?: Prisma.PRDPageCreateNestedManyWithoutPrdInput
1261
+ versions?: Prisma.PRDVersionCreateNestedManyWithoutPrdInput
1262
+ reviews?: Prisma.ReviewCreateNestedManyWithoutPrdInput
1263
+ comments?: Prisma.CommentCreateNestedManyWithoutPrdInput
1264
+ shares?: Prisma.ShareCreateNestedManyWithoutPrdInput
1265
+ agentConversations?: Prisma.AgentConversationCreateNestedManyWithoutPrdInput
1266
+ }
1267
+
1268
+ export type PRDUncheckedCreateWithoutPrdTagsInput = {
1269
+ id?: string
1270
+ icon?: string
1271
+ name: string
1272
+ description?: string | null
1273
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1274
+ userId: string
1275
+ isDeleted?: boolean
1276
+ deletedAt?: Date | string | null
1277
+ createdAt?: Date | string
1278
+ updatedAt?: Date | string
1279
+ pages?: Prisma.PRDPageUncheckedCreateNestedManyWithoutPrdInput
1280
+ versions?: Prisma.PRDVersionUncheckedCreateNestedManyWithoutPrdInput
1281
+ reviews?: Prisma.ReviewUncheckedCreateNestedManyWithoutPrdInput
1282
+ comments?: Prisma.CommentUncheckedCreateNestedManyWithoutPrdInput
1283
+ shares?: Prisma.ShareUncheckedCreateNestedManyWithoutPrdInput
1284
+ agentConversations?: Prisma.AgentConversationUncheckedCreateNestedManyWithoutPrdInput
1285
+ }
1286
+
1287
+ export type PRDCreateOrConnectWithoutPrdTagsInput = {
1288
+ where: Prisma.PRDWhereUniqueInput
1289
+ create: Prisma.XOR<Prisma.PRDCreateWithoutPrdTagsInput, Prisma.PRDUncheckedCreateWithoutPrdTagsInput>
1290
+ }
1291
+
1292
+ export type PRDUpsertWithoutPrdTagsInput = {
1293
+ update: Prisma.XOR<Prisma.PRDUpdateWithoutPrdTagsInput, Prisma.PRDUncheckedUpdateWithoutPrdTagsInput>
1294
+ create: Prisma.XOR<Prisma.PRDCreateWithoutPrdTagsInput, Prisma.PRDUncheckedCreateWithoutPrdTagsInput>
1295
+ where?: Prisma.PRDWhereInput
1296
+ }
1297
+
1298
+ export type PRDUpdateToOneWithWhereWithoutPrdTagsInput = {
1299
+ where?: Prisma.PRDWhereInput
1300
+ data: Prisma.XOR<Prisma.PRDUpdateWithoutPrdTagsInput, Prisma.PRDUncheckedUpdateWithoutPrdTagsInput>
1301
+ }
1302
+
1303
+ export type PRDUpdateWithoutPrdTagsInput = {
1304
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1305
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1306
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1307
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1308
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1309
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1310
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1311
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1312
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1313
+ user?: Prisma.UserUpdateOneRequiredWithoutPrdsNestedInput
1314
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
1315
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
1316
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
1317
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
1318
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
1319
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
1320
+ }
1321
+
1322
+ export type PRDUncheckedUpdateWithoutPrdTagsInput = {
1323
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1324
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1325
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1326
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1327
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1328
+ userId?: Prisma.StringFieldUpdateOperationsInput | string
1329
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1330
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1331
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1332
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1333
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
1334
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
1335
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
1336
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
1337
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
1338
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
1339
+ }
1340
+
1341
+ export type PRDCreateManyUserInput = {
1342
+ id?: string
1343
+ icon?: string
1344
+ name: string
1345
+ description?: string | null
1346
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1347
+ isDeleted?: boolean
1348
+ deletedAt?: Date | string | null
1349
+ createdAt?: Date | string
1350
+ updatedAt?: Date | string
1351
+ }
1352
+
1353
+ export type PRDUpdateWithoutUserInput = {
1354
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1355
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1356
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1357
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1358
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1359
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1360
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1361
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1362
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1363
+ pages?: Prisma.PRDPageUpdateManyWithoutPrdNestedInput
1364
+ versions?: Prisma.PRDVersionUpdateManyWithoutPrdNestedInput
1365
+ reviews?: Prisma.ReviewUpdateManyWithoutPrdNestedInput
1366
+ comments?: Prisma.CommentUpdateManyWithoutPrdNestedInput
1367
+ shares?: Prisma.ShareUpdateManyWithoutPrdNestedInput
1368
+ prdTags?: Prisma.PRDTagUpdateManyWithoutPrdNestedInput
1369
+ agentConversations?: Prisma.AgentConversationUpdateManyWithoutPrdNestedInput
1370
+ }
1371
+
1372
+ export type PRDUncheckedUpdateWithoutUserInput = {
1373
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1374
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1375
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1376
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1377
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1378
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1379
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1380
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1381
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1382
+ pages?: Prisma.PRDPageUncheckedUpdateManyWithoutPrdNestedInput
1383
+ versions?: Prisma.PRDVersionUncheckedUpdateManyWithoutPrdNestedInput
1384
+ reviews?: Prisma.ReviewUncheckedUpdateManyWithoutPrdNestedInput
1385
+ comments?: Prisma.CommentUncheckedUpdateManyWithoutPrdNestedInput
1386
+ shares?: Prisma.ShareUncheckedUpdateManyWithoutPrdNestedInput
1387
+ prdTags?: Prisma.PRDTagUncheckedUpdateManyWithoutPrdNestedInput
1388
+ agentConversations?: Prisma.AgentConversationUncheckedUpdateManyWithoutPrdNestedInput
1389
+ }
1390
+
1391
+ export type PRDUncheckedUpdateManyWithoutUserInput = {
1392
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1393
+ icon?: Prisma.StringFieldUpdateOperationsInput | string
1394
+ name?: Prisma.StringFieldUpdateOperationsInput | string
1395
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1396
+ settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
1397
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
1398
+ deletedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1399
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1400
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1401
+ }
1402
+
1403
+
1404
+ /**
1405
+ * Count Type PRDCountOutputType
1406
+ */
1407
+
1408
+ export type PRDCountOutputType = {
1409
+ pages: number
1410
+ versions: number
1411
+ reviews: number
1412
+ comments: number
1413
+ shares: number
1414
+ prdTags: number
1415
+ agentConversations: number
1416
+ }
1417
+
1418
+ export type PRDCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1419
+ pages?: boolean | PRDCountOutputTypeCountPagesArgs
1420
+ versions?: boolean | PRDCountOutputTypeCountVersionsArgs
1421
+ reviews?: boolean | PRDCountOutputTypeCountReviewsArgs
1422
+ comments?: boolean | PRDCountOutputTypeCountCommentsArgs
1423
+ shares?: boolean | PRDCountOutputTypeCountSharesArgs
1424
+ prdTags?: boolean | PRDCountOutputTypeCountPrdTagsArgs
1425
+ agentConversations?: boolean | PRDCountOutputTypeCountAgentConversationsArgs
1426
+ }
1427
+
1428
+ /**
1429
+ * PRDCountOutputType without action
1430
+ */
1431
+ export type PRDCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1432
+ /**
1433
+ * Select specific fields to fetch from the PRDCountOutputType
1434
+ */
1435
+ select?: Prisma.PRDCountOutputTypeSelect<ExtArgs> | null
1436
+ }
1437
+
1438
+ /**
1439
+ * PRDCountOutputType without action
1440
+ */
1441
+ export type PRDCountOutputTypeCountPagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1442
+ where?: Prisma.PRDPageWhereInput
1443
+ }
1444
+
1445
+ /**
1446
+ * PRDCountOutputType without action
1447
+ */
1448
+ export type PRDCountOutputTypeCountVersionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ where?: Prisma.PRDVersionWhereInput
1450
+ }
1451
+
1452
+ /**
1453
+ * PRDCountOutputType without action
1454
+ */
1455
+ export type PRDCountOutputTypeCountReviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1456
+ where?: Prisma.ReviewWhereInput
1457
+ }
1458
+
1459
+ /**
1460
+ * PRDCountOutputType without action
1461
+ */
1462
+ export type PRDCountOutputTypeCountCommentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1463
+ where?: Prisma.CommentWhereInput
1464
+ }
1465
+
1466
+ /**
1467
+ * PRDCountOutputType without action
1468
+ */
1469
+ export type PRDCountOutputTypeCountSharesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1470
+ where?: Prisma.ShareWhereInput
1471
+ }
1472
+
1473
+ /**
1474
+ * PRDCountOutputType without action
1475
+ */
1476
+ export type PRDCountOutputTypeCountPrdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1477
+ where?: Prisma.PRDTagWhereInput
1478
+ }
1479
+
1480
+ /**
1481
+ * PRDCountOutputType without action
1482
+ */
1483
+ export type PRDCountOutputTypeCountAgentConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ where?: Prisma.AgentConversationWhereInput
1485
+ }
1486
+
1487
+
1488
+ export type PRDSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1489
+ id?: boolean
1490
+ icon?: boolean
1491
+ name?: boolean
1492
+ description?: boolean
1493
+ settings?: boolean
1494
+ userId?: boolean
1495
+ isDeleted?: boolean
1496
+ deletedAt?: boolean
1497
+ createdAt?: boolean
1498
+ updatedAt?: boolean
1499
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1500
+ pages?: boolean | Prisma.PRD$pagesArgs<ExtArgs>
1501
+ versions?: boolean | Prisma.PRD$versionsArgs<ExtArgs>
1502
+ reviews?: boolean | Prisma.PRD$reviewsArgs<ExtArgs>
1503
+ comments?: boolean | Prisma.PRD$commentsArgs<ExtArgs>
1504
+ shares?: boolean | Prisma.PRD$sharesArgs<ExtArgs>
1505
+ prdTags?: boolean | Prisma.PRD$prdTagsArgs<ExtArgs>
1506
+ agentConversations?: boolean | Prisma.PRD$agentConversationsArgs<ExtArgs>
1507
+ _count?: boolean | Prisma.PRDCountOutputTypeDefaultArgs<ExtArgs>
1508
+ }, ExtArgs["result"]["pRD"]>
1509
+
1510
+ export type PRDSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1511
+ id?: boolean
1512
+ icon?: boolean
1513
+ name?: boolean
1514
+ description?: boolean
1515
+ settings?: boolean
1516
+ userId?: boolean
1517
+ isDeleted?: boolean
1518
+ deletedAt?: boolean
1519
+ createdAt?: boolean
1520
+ updatedAt?: boolean
1521
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1522
+ }, ExtArgs["result"]["pRD"]>
1523
+
1524
+ export type PRDSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1525
+ id?: boolean
1526
+ icon?: boolean
1527
+ name?: boolean
1528
+ description?: boolean
1529
+ settings?: boolean
1530
+ userId?: boolean
1531
+ isDeleted?: boolean
1532
+ deletedAt?: boolean
1533
+ createdAt?: boolean
1534
+ updatedAt?: boolean
1535
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1536
+ }, ExtArgs["result"]["pRD"]>
1537
+
1538
+ export type PRDSelectScalar = {
1539
+ id?: boolean
1540
+ icon?: boolean
1541
+ name?: boolean
1542
+ description?: boolean
1543
+ settings?: boolean
1544
+ userId?: boolean
1545
+ isDeleted?: boolean
1546
+ deletedAt?: boolean
1547
+ createdAt?: boolean
1548
+ updatedAt?: boolean
1549
+ }
1550
+
1551
+ export type PRDOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "icon" | "name" | "description" | "settings" | "userId" | "isDeleted" | "deletedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["pRD"]>
1552
+ export type PRDInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1554
+ pages?: boolean | Prisma.PRD$pagesArgs<ExtArgs>
1555
+ versions?: boolean | Prisma.PRD$versionsArgs<ExtArgs>
1556
+ reviews?: boolean | Prisma.PRD$reviewsArgs<ExtArgs>
1557
+ comments?: boolean | Prisma.PRD$commentsArgs<ExtArgs>
1558
+ shares?: boolean | Prisma.PRD$sharesArgs<ExtArgs>
1559
+ prdTags?: boolean | Prisma.PRD$prdTagsArgs<ExtArgs>
1560
+ agentConversations?: boolean | Prisma.PRD$agentConversationsArgs<ExtArgs>
1561
+ _count?: boolean | Prisma.PRDCountOutputTypeDefaultArgs<ExtArgs>
1562
+ }
1563
+ export type PRDIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1564
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1565
+ }
1566
+ export type PRDIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1567
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
1568
+ }
1569
+
1570
+ export type $PRDPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1571
+ name: "PRD"
1572
+ objects: {
1573
+ user: Prisma.$UserPayload<ExtArgs>
1574
+ pages: Prisma.$PRDPagePayload<ExtArgs>[]
1575
+ versions: Prisma.$PRDVersionPayload<ExtArgs>[]
1576
+ reviews: Prisma.$ReviewPayload<ExtArgs>[]
1577
+ comments: Prisma.$CommentPayload<ExtArgs>[]
1578
+ shares: Prisma.$SharePayload<ExtArgs>[]
1579
+ prdTags: Prisma.$PRDTagPayload<ExtArgs>[]
1580
+ agentConversations: Prisma.$AgentConversationPayload<ExtArgs>[]
1581
+ }
1582
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1583
+ id: string
1584
+ icon: string
1585
+ name: string
1586
+ description: string | null
1587
+ settings: runtime.JsonValue | null
1588
+ userId: string
1589
+ isDeleted: boolean
1590
+ deletedAt: Date | null
1591
+ createdAt: Date
1592
+ updatedAt: Date
1593
+ }, ExtArgs["result"]["pRD"]>
1594
+ composites: {}
1595
+ }
1596
+
1597
+ export type PRDGetPayload<S extends boolean | null | undefined | PRDDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PRDPayload, S>
1598
+
1599
+ export type PRDCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1600
+ Omit<PRDFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1601
+ select?: PRDCountAggregateInputType | true
1602
+ }
1603
+
1604
+ export interface PRDDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1605
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PRD'], meta: { name: 'PRD' } }
1606
+ /**
1607
+ * Find zero or one PRD that matches the filter.
1608
+ * @param {PRDFindUniqueArgs} args - Arguments to find a PRD
1609
+ * @example
1610
+ * // Get one PRD
1611
+ * const pRD = await prisma.pRD.findUnique({
1612
+ * where: {
1613
+ * // ... provide filter here
1614
+ * }
1615
+ * })
1616
+ */
1617
+ findUnique<T extends PRDFindUniqueArgs>(args: Prisma.SelectSubset<T, PRDFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1618
+
1619
+ /**
1620
+ * Find one PRD that matches the filter or throw an error with `error.code='P2025'`
1621
+ * if no matches were found.
1622
+ * @param {PRDFindUniqueOrThrowArgs} args - Arguments to find a PRD
1623
+ * @example
1624
+ * // Get one PRD
1625
+ * const pRD = await prisma.pRD.findUniqueOrThrow({
1626
+ * where: {
1627
+ * // ... provide filter here
1628
+ * }
1629
+ * })
1630
+ */
1631
+ findUniqueOrThrow<T extends PRDFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PRDFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1632
+
1633
+ /**
1634
+ * Find the first PRD that matches the filter.
1635
+ * Note, that providing `undefined` is treated as the value not being there.
1636
+ * Read more here: https://pris.ly/d/null-undefined
1637
+ * @param {PRDFindFirstArgs} args - Arguments to find a PRD
1638
+ * @example
1639
+ * // Get one PRD
1640
+ * const pRD = await prisma.pRD.findFirst({
1641
+ * where: {
1642
+ * // ... provide filter here
1643
+ * }
1644
+ * })
1645
+ */
1646
+ findFirst<T extends PRDFindFirstArgs>(args?: Prisma.SelectSubset<T, PRDFindFirstArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1647
+
1648
+ /**
1649
+ * Find the first PRD that matches the filter or
1650
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1651
+ * Note, that providing `undefined` is treated as the value not being there.
1652
+ * Read more here: https://pris.ly/d/null-undefined
1653
+ * @param {PRDFindFirstOrThrowArgs} args - Arguments to find a PRD
1654
+ * @example
1655
+ * // Get one PRD
1656
+ * const pRD = await prisma.pRD.findFirstOrThrow({
1657
+ * where: {
1658
+ * // ... provide filter here
1659
+ * }
1660
+ * })
1661
+ */
1662
+ findFirstOrThrow<T extends PRDFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PRDFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1663
+
1664
+ /**
1665
+ * Find zero or more PRDS that matches the filter.
1666
+ * Note, that providing `undefined` is treated as the value not being there.
1667
+ * Read more here: https://pris.ly/d/null-undefined
1668
+ * @param {PRDFindManyArgs} args - Arguments to filter and select certain fields only.
1669
+ * @example
1670
+ * // Get all PRDS
1671
+ * const pRDS = await prisma.pRD.findMany()
1672
+ *
1673
+ * // Get first 10 PRDS
1674
+ * const pRDS = await prisma.pRD.findMany({ take: 10 })
1675
+ *
1676
+ * // Only select the `id`
1677
+ * const pRDWithIdOnly = await prisma.pRD.findMany({ select: { id: true } })
1678
+ *
1679
+ */
1680
+ findMany<T extends PRDFindManyArgs>(args?: Prisma.SelectSubset<T, PRDFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1681
+
1682
+ /**
1683
+ * Create a PRD.
1684
+ * @param {PRDCreateArgs} args - Arguments to create a PRD.
1685
+ * @example
1686
+ * // Create one PRD
1687
+ * const PRD = await prisma.pRD.create({
1688
+ * data: {
1689
+ * // ... data to create a PRD
1690
+ * }
1691
+ * })
1692
+ *
1693
+ */
1694
+ create<T extends PRDCreateArgs>(args: Prisma.SelectSubset<T, PRDCreateArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1695
+
1696
+ /**
1697
+ * Create many PRDS.
1698
+ * @param {PRDCreateManyArgs} args - Arguments to create many PRDS.
1699
+ * @example
1700
+ * // Create many PRDS
1701
+ * const pRD = await prisma.pRD.createMany({
1702
+ * data: [
1703
+ * // ... provide data here
1704
+ * ]
1705
+ * })
1706
+ *
1707
+ */
1708
+ createMany<T extends PRDCreateManyArgs>(args?: Prisma.SelectSubset<T, PRDCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1709
+
1710
+ /**
1711
+ * Create many PRDS and returns the data saved in the database.
1712
+ * @param {PRDCreateManyAndReturnArgs} args - Arguments to create many PRDS.
1713
+ * @example
1714
+ * // Create many PRDS
1715
+ * const pRD = await prisma.pRD.createManyAndReturn({
1716
+ * data: [
1717
+ * // ... provide data here
1718
+ * ]
1719
+ * })
1720
+ *
1721
+ * // Create many PRDS and only return the `id`
1722
+ * const pRDWithIdOnly = await prisma.pRD.createManyAndReturn({
1723
+ * select: { id: true },
1724
+ * data: [
1725
+ * // ... provide data here
1726
+ * ]
1727
+ * })
1728
+ * Note, that providing `undefined` is treated as the value not being there.
1729
+ * Read more here: https://pris.ly/d/null-undefined
1730
+ *
1731
+ */
1732
+ createManyAndReturn<T extends PRDCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PRDCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1733
+
1734
+ /**
1735
+ * Delete a PRD.
1736
+ * @param {PRDDeleteArgs} args - Arguments to delete one PRD.
1737
+ * @example
1738
+ * // Delete one PRD
1739
+ * const PRD = await prisma.pRD.delete({
1740
+ * where: {
1741
+ * // ... filter to delete one PRD
1742
+ * }
1743
+ * })
1744
+ *
1745
+ */
1746
+ delete<T extends PRDDeleteArgs>(args: Prisma.SelectSubset<T, PRDDeleteArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1747
+
1748
+ /**
1749
+ * Update one PRD.
1750
+ * @param {PRDUpdateArgs} args - Arguments to update one PRD.
1751
+ * @example
1752
+ * // Update one PRD
1753
+ * const pRD = await prisma.pRD.update({
1754
+ * where: {
1755
+ * // ... provide filter here
1756
+ * },
1757
+ * data: {
1758
+ * // ... provide data here
1759
+ * }
1760
+ * })
1761
+ *
1762
+ */
1763
+ update<T extends PRDUpdateArgs>(args: Prisma.SelectSubset<T, PRDUpdateArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1764
+
1765
+ /**
1766
+ * Delete zero or more PRDS.
1767
+ * @param {PRDDeleteManyArgs} args - Arguments to filter PRDS to delete.
1768
+ * @example
1769
+ * // Delete a few PRDS
1770
+ * const { count } = await prisma.pRD.deleteMany({
1771
+ * where: {
1772
+ * // ... provide filter here
1773
+ * }
1774
+ * })
1775
+ *
1776
+ */
1777
+ deleteMany<T extends PRDDeleteManyArgs>(args?: Prisma.SelectSubset<T, PRDDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1778
+
1779
+ /**
1780
+ * Update zero or more PRDS.
1781
+ * Note, that providing `undefined` is treated as the value not being there.
1782
+ * Read more here: https://pris.ly/d/null-undefined
1783
+ * @param {PRDUpdateManyArgs} args - Arguments to update one or more rows.
1784
+ * @example
1785
+ * // Update many PRDS
1786
+ * const pRD = await prisma.pRD.updateMany({
1787
+ * where: {
1788
+ * // ... provide filter here
1789
+ * },
1790
+ * data: {
1791
+ * // ... provide data here
1792
+ * }
1793
+ * })
1794
+ *
1795
+ */
1796
+ updateMany<T extends PRDUpdateManyArgs>(args: Prisma.SelectSubset<T, PRDUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1797
+
1798
+ /**
1799
+ * Update zero or more PRDS and returns the data updated in the database.
1800
+ * @param {PRDUpdateManyAndReturnArgs} args - Arguments to update many PRDS.
1801
+ * @example
1802
+ * // Update many PRDS
1803
+ * const pRD = await prisma.pRD.updateManyAndReturn({
1804
+ * where: {
1805
+ * // ... provide filter here
1806
+ * },
1807
+ * data: [
1808
+ * // ... provide data here
1809
+ * ]
1810
+ * })
1811
+ *
1812
+ * // Update zero or more PRDS and only return the `id`
1813
+ * const pRDWithIdOnly = await prisma.pRD.updateManyAndReturn({
1814
+ * select: { id: true },
1815
+ * where: {
1816
+ * // ... provide filter here
1817
+ * },
1818
+ * data: [
1819
+ * // ... provide data here
1820
+ * ]
1821
+ * })
1822
+ * Note, that providing `undefined` is treated as the value not being there.
1823
+ * Read more here: https://pris.ly/d/null-undefined
1824
+ *
1825
+ */
1826
+ updateManyAndReturn<T extends PRDUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PRDUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1827
+
1828
+ /**
1829
+ * Create or update one PRD.
1830
+ * @param {PRDUpsertArgs} args - Arguments to update or create a PRD.
1831
+ * @example
1832
+ * // Update or create a PRD
1833
+ * const pRD = await prisma.pRD.upsert({
1834
+ * create: {
1835
+ * // ... data to create a PRD
1836
+ * },
1837
+ * update: {
1838
+ * // ... in case it already exists, update
1839
+ * },
1840
+ * where: {
1841
+ * // ... the filter for the PRD we want to update
1842
+ * }
1843
+ * })
1844
+ */
1845
+ upsert<T extends PRDUpsertArgs>(args: Prisma.SelectSubset<T, PRDUpsertArgs<ExtArgs>>): Prisma.Prisma__PRDClient<runtime.Types.Result.GetResult<Prisma.$PRDPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1846
+
1847
+
1848
+ /**
1849
+ * Count the number of PRDS.
1850
+ * Note, that providing `undefined` is treated as the value not being there.
1851
+ * Read more here: https://pris.ly/d/null-undefined
1852
+ * @param {PRDCountArgs} args - Arguments to filter PRDS to count.
1853
+ * @example
1854
+ * // Count the number of PRDS
1855
+ * const count = await prisma.pRD.count({
1856
+ * where: {
1857
+ * // ... the filter for the PRDS we want to count
1858
+ * }
1859
+ * })
1860
+ **/
1861
+ count<T extends PRDCountArgs>(
1862
+ args?: Prisma.Subset<T, PRDCountArgs>,
1863
+ ): Prisma.PrismaPromise<
1864
+ T extends runtime.Types.Utils.Record<'select', any>
1865
+ ? T['select'] extends true
1866
+ ? number
1867
+ : Prisma.GetScalarType<T['select'], PRDCountAggregateOutputType>
1868
+ : number
1869
+ >
1870
+
1871
+ /**
1872
+ * Allows you to perform aggregations operations on a PRD.
1873
+ * Note, that providing `undefined` is treated as the value not being there.
1874
+ * Read more here: https://pris.ly/d/null-undefined
1875
+ * @param {PRDAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1876
+ * @example
1877
+ * // Ordered by age ascending
1878
+ * // Where email contains prisma.io
1879
+ * // Limited to the 10 users
1880
+ * const aggregations = await prisma.user.aggregate({
1881
+ * _avg: {
1882
+ * age: true,
1883
+ * },
1884
+ * where: {
1885
+ * email: {
1886
+ * contains: "prisma.io",
1887
+ * },
1888
+ * },
1889
+ * orderBy: {
1890
+ * age: "asc",
1891
+ * },
1892
+ * take: 10,
1893
+ * })
1894
+ **/
1895
+ aggregate<T extends PRDAggregateArgs>(args: Prisma.Subset<T, PRDAggregateArgs>): Prisma.PrismaPromise<GetPRDAggregateType<T>>
1896
+
1897
+ /**
1898
+ * Group by PRD.
1899
+ * Note, that providing `undefined` is treated as the value not being there.
1900
+ * Read more here: https://pris.ly/d/null-undefined
1901
+ * @param {PRDGroupByArgs} args - Group by arguments.
1902
+ * @example
1903
+ * // Group by city, order by createdAt, get count
1904
+ * const result = await prisma.user.groupBy({
1905
+ * by: ['city', 'createdAt'],
1906
+ * orderBy: {
1907
+ * createdAt: true
1908
+ * },
1909
+ * _count: {
1910
+ * _all: true
1911
+ * },
1912
+ * })
1913
+ *
1914
+ **/
1915
+ groupBy<
1916
+ T extends PRDGroupByArgs,
1917
+ HasSelectOrTake extends Prisma.Or<
1918
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1919
+ Prisma.Extends<'take', Prisma.Keys<T>>
1920
+ >,
1921
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1922
+ ? { orderBy: PRDGroupByArgs['orderBy'] }
1923
+ : { orderBy?: PRDGroupByArgs['orderBy'] },
1924
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1925
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1926
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1927
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1928
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1929
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1930
+ InputErrors extends ByEmpty extends Prisma.True
1931
+ ? `Error: "by" must not be empty.`
1932
+ : HavingValid extends Prisma.False
1933
+ ? {
1934
+ [P in HavingFields]: P extends ByFields
1935
+ ? never
1936
+ : P extends string
1937
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1938
+ : [
1939
+ Error,
1940
+ 'Field ',
1941
+ P,
1942
+ ` in "having" needs to be provided in "by"`,
1943
+ ]
1944
+ }[HavingFields]
1945
+ : 'take' extends Prisma.Keys<T>
1946
+ ? 'orderBy' extends Prisma.Keys<T>
1947
+ ? ByValid extends Prisma.True
1948
+ ? {}
1949
+ : {
1950
+ [P in OrderFields]: P extends ByFields
1951
+ ? never
1952
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1953
+ }[OrderFields]
1954
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1955
+ : 'skip' extends Prisma.Keys<T>
1956
+ ? 'orderBy' extends Prisma.Keys<T>
1957
+ ? ByValid extends Prisma.True
1958
+ ? {}
1959
+ : {
1960
+ [P in OrderFields]: P extends ByFields
1961
+ ? never
1962
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1963
+ }[OrderFields]
1964
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1965
+ : ByValid extends Prisma.True
1966
+ ? {}
1967
+ : {
1968
+ [P in OrderFields]: P extends ByFields
1969
+ ? never
1970
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1971
+ }[OrderFields]
1972
+ >(args: Prisma.SubsetIntersection<T, PRDGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPRDGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1973
+ /**
1974
+ * Fields of the PRD model
1975
+ */
1976
+ readonly fields: PRDFieldRefs;
1977
+ }
1978
+
1979
+ /**
1980
+ * The delegate class that acts as a "Promise-like" for PRD.
1981
+ * Why is this prefixed with `Prisma__`?
1982
+ * Because we want to prevent naming conflicts as mentioned in
1983
+ * https://github.com/prisma/prisma-client-js/issues/707
1984
+ */
1985
+ export interface Prisma__PRDClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1986
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1987
+ user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1988
+ pages<T extends Prisma.PRD$pagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$pagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDPagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1989
+ versions<T extends Prisma.PRD$versionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$versionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDVersionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1990
+ reviews<T extends Prisma.PRD$reviewsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$reviewsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ReviewPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1991
+ comments<T extends Prisma.PRD$commentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$commentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CommentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1992
+ shares<T extends Prisma.PRD$sharesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$sharesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SharePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1993
+ prdTags<T extends Prisma.PRD$prdTagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$prdTagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PRDTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1994
+ agentConversations<T extends Prisma.PRD$agentConversationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PRD$agentConversationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AgentConversationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1995
+ /**
1996
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1997
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1998
+ * @param onrejected The callback to execute when the Promise is rejected.
1999
+ * @returns A Promise for the completion of which ever callback is executed.
2000
+ */
2001
+ 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>
2002
+ /**
2003
+ * Attaches a callback for only the rejection of the Promise.
2004
+ * @param onrejected The callback to execute when the Promise is rejected.
2005
+ * @returns A Promise for the completion of the callback.
2006
+ */
2007
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
2008
+ /**
2009
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2010
+ * resolved value cannot be modified from the callback.
2011
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2012
+ * @returns A Promise for the completion of the callback.
2013
+ */
2014
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
2015
+ }
2016
+
2017
+
2018
+
2019
+
2020
+ /**
2021
+ * Fields of the PRD model
2022
+ */
2023
+ export interface PRDFieldRefs {
2024
+ readonly id: Prisma.FieldRef<"PRD", 'String'>
2025
+ readonly icon: Prisma.FieldRef<"PRD", 'String'>
2026
+ readonly name: Prisma.FieldRef<"PRD", 'String'>
2027
+ readonly description: Prisma.FieldRef<"PRD", 'String'>
2028
+ readonly settings: Prisma.FieldRef<"PRD", 'Json'>
2029
+ readonly userId: Prisma.FieldRef<"PRD", 'String'>
2030
+ readonly isDeleted: Prisma.FieldRef<"PRD", 'Boolean'>
2031
+ readonly deletedAt: Prisma.FieldRef<"PRD", 'DateTime'>
2032
+ readonly createdAt: Prisma.FieldRef<"PRD", 'DateTime'>
2033
+ readonly updatedAt: Prisma.FieldRef<"PRD", 'DateTime'>
2034
+ }
2035
+
2036
+
2037
+ // Custom InputTypes
2038
+ /**
2039
+ * PRD findUnique
2040
+ */
2041
+ export type PRDFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2042
+ /**
2043
+ * Select specific fields to fetch from the PRD
2044
+ */
2045
+ select?: Prisma.PRDSelect<ExtArgs> | null
2046
+ /**
2047
+ * Omit specific fields from the PRD
2048
+ */
2049
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2050
+ /**
2051
+ * Choose, which related nodes to fetch as well
2052
+ */
2053
+ include?: Prisma.PRDInclude<ExtArgs> | null
2054
+ /**
2055
+ * Filter, which PRD to fetch.
2056
+ */
2057
+ where: Prisma.PRDWhereUniqueInput
2058
+ }
2059
+
2060
+ /**
2061
+ * PRD findUniqueOrThrow
2062
+ */
2063
+ export type PRDFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2064
+ /**
2065
+ * Select specific fields to fetch from the PRD
2066
+ */
2067
+ select?: Prisma.PRDSelect<ExtArgs> | null
2068
+ /**
2069
+ * Omit specific fields from the PRD
2070
+ */
2071
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2072
+ /**
2073
+ * Choose, which related nodes to fetch as well
2074
+ */
2075
+ include?: Prisma.PRDInclude<ExtArgs> | null
2076
+ /**
2077
+ * Filter, which PRD to fetch.
2078
+ */
2079
+ where: Prisma.PRDWhereUniqueInput
2080
+ }
2081
+
2082
+ /**
2083
+ * PRD findFirst
2084
+ */
2085
+ export type PRDFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2086
+ /**
2087
+ * Select specific fields to fetch from the PRD
2088
+ */
2089
+ select?: Prisma.PRDSelect<ExtArgs> | null
2090
+ /**
2091
+ * Omit specific fields from the PRD
2092
+ */
2093
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2094
+ /**
2095
+ * Choose, which related nodes to fetch as well
2096
+ */
2097
+ include?: Prisma.PRDInclude<ExtArgs> | null
2098
+ /**
2099
+ * Filter, which PRD to fetch.
2100
+ */
2101
+ where?: Prisma.PRDWhereInput
2102
+ /**
2103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2104
+ *
2105
+ * Determine the order of PRDS to fetch.
2106
+ */
2107
+ orderBy?: Prisma.PRDOrderByWithRelationInput | Prisma.PRDOrderByWithRelationInput[]
2108
+ /**
2109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2110
+ *
2111
+ * Sets the position for searching for PRDS.
2112
+ */
2113
+ cursor?: Prisma.PRDWhereUniqueInput
2114
+ /**
2115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2116
+ *
2117
+ * Take `±n` PRDS from the position of the cursor.
2118
+ */
2119
+ take?: number
2120
+ /**
2121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2122
+ *
2123
+ * Skip the first `n` PRDS.
2124
+ */
2125
+ skip?: number
2126
+ /**
2127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2128
+ *
2129
+ * Filter by unique combinations of PRDS.
2130
+ */
2131
+ distinct?: Prisma.PRDScalarFieldEnum | Prisma.PRDScalarFieldEnum[]
2132
+ }
2133
+
2134
+ /**
2135
+ * PRD findFirstOrThrow
2136
+ */
2137
+ export type PRDFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2138
+ /**
2139
+ * Select specific fields to fetch from the PRD
2140
+ */
2141
+ select?: Prisma.PRDSelect<ExtArgs> | null
2142
+ /**
2143
+ * Omit specific fields from the PRD
2144
+ */
2145
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2146
+ /**
2147
+ * Choose, which related nodes to fetch as well
2148
+ */
2149
+ include?: Prisma.PRDInclude<ExtArgs> | null
2150
+ /**
2151
+ * Filter, which PRD to fetch.
2152
+ */
2153
+ where?: Prisma.PRDWhereInput
2154
+ /**
2155
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2156
+ *
2157
+ * Determine the order of PRDS to fetch.
2158
+ */
2159
+ orderBy?: Prisma.PRDOrderByWithRelationInput | Prisma.PRDOrderByWithRelationInput[]
2160
+ /**
2161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2162
+ *
2163
+ * Sets the position for searching for PRDS.
2164
+ */
2165
+ cursor?: Prisma.PRDWhereUniqueInput
2166
+ /**
2167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2168
+ *
2169
+ * Take `±n` PRDS from the position of the cursor.
2170
+ */
2171
+ take?: number
2172
+ /**
2173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2174
+ *
2175
+ * Skip the first `n` PRDS.
2176
+ */
2177
+ skip?: number
2178
+ /**
2179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2180
+ *
2181
+ * Filter by unique combinations of PRDS.
2182
+ */
2183
+ distinct?: Prisma.PRDScalarFieldEnum | Prisma.PRDScalarFieldEnum[]
2184
+ }
2185
+
2186
+ /**
2187
+ * PRD findMany
2188
+ */
2189
+ export type PRDFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2190
+ /**
2191
+ * Select specific fields to fetch from the PRD
2192
+ */
2193
+ select?: Prisma.PRDSelect<ExtArgs> | null
2194
+ /**
2195
+ * Omit specific fields from the PRD
2196
+ */
2197
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2198
+ /**
2199
+ * Choose, which related nodes to fetch as well
2200
+ */
2201
+ include?: Prisma.PRDInclude<ExtArgs> | null
2202
+ /**
2203
+ * Filter, which PRDS to fetch.
2204
+ */
2205
+ where?: Prisma.PRDWhereInput
2206
+ /**
2207
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2208
+ *
2209
+ * Determine the order of PRDS to fetch.
2210
+ */
2211
+ orderBy?: Prisma.PRDOrderByWithRelationInput | Prisma.PRDOrderByWithRelationInput[]
2212
+ /**
2213
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2214
+ *
2215
+ * Sets the position for listing PRDS.
2216
+ */
2217
+ cursor?: Prisma.PRDWhereUniqueInput
2218
+ /**
2219
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2220
+ *
2221
+ * Take `±n` PRDS from the position of the cursor.
2222
+ */
2223
+ take?: number
2224
+ /**
2225
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2226
+ *
2227
+ * Skip the first `n` PRDS.
2228
+ */
2229
+ skip?: number
2230
+ /**
2231
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2232
+ *
2233
+ * Filter by unique combinations of PRDS.
2234
+ */
2235
+ distinct?: Prisma.PRDScalarFieldEnum | Prisma.PRDScalarFieldEnum[]
2236
+ }
2237
+
2238
+ /**
2239
+ * PRD create
2240
+ */
2241
+ export type PRDCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2242
+ /**
2243
+ * Select specific fields to fetch from the PRD
2244
+ */
2245
+ select?: Prisma.PRDSelect<ExtArgs> | null
2246
+ /**
2247
+ * Omit specific fields from the PRD
2248
+ */
2249
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2250
+ /**
2251
+ * Choose, which related nodes to fetch as well
2252
+ */
2253
+ include?: Prisma.PRDInclude<ExtArgs> | null
2254
+ /**
2255
+ * The data needed to create a PRD.
2256
+ */
2257
+ data: Prisma.XOR<Prisma.PRDCreateInput, Prisma.PRDUncheckedCreateInput>
2258
+ }
2259
+
2260
+ /**
2261
+ * PRD createMany
2262
+ */
2263
+ export type PRDCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2264
+ /**
2265
+ * The data used to create many PRDS.
2266
+ */
2267
+ data: Prisma.PRDCreateManyInput | Prisma.PRDCreateManyInput[]
2268
+ }
2269
+
2270
+ /**
2271
+ * PRD createManyAndReturn
2272
+ */
2273
+ export type PRDCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2274
+ /**
2275
+ * Select specific fields to fetch from the PRD
2276
+ */
2277
+ select?: Prisma.PRDSelectCreateManyAndReturn<ExtArgs> | null
2278
+ /**
2279
+ * Omit specific fields from the PRD
2280
+ */
2281
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2282
+ /**
2283
+ * The data used to create many PRDS.
2284
+ */
2285
+ data: Prisma.PRDCreateManyInput | Prisma.PRDCreateManyInput[]
2286
+ /**
2287
+ * Choose, which related nodes to fetch as well
2288
+ */
2289
+ include?: Prisma.PRDIncludeCreateManyAndReturn<ExtArgs> | null
2290
+ }
2291
+
2292
+ /**
2293
+ * PRD update
2294
+ */
2295
+ export type PRDUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2296
+ /**
2297
+ * Select specific fields to fetch from the PRD
2298
+ */
2299
+ select?: Prisma.PRDSelect<ExtArgs> | null
2300
+ /**
2301
+ * Omit specific fields from the PRD
2302
+ */
2303
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2304
+ /**
2305
+ * Choose, which related nodes to fetch as well
2306
+ */
2307
+ include?: Prisma.PRDInclude<ExtArgs> | null
2308
+ /**
2309
+ * The data needed to update a PRD.
2310
+ */
2311
+ data: Prisma.XOR<Prisma.PRDUpdateInput, Prisma.PRDUncheckedUpdateInput>
2312
+ /**
2313
+ * Choose, which PRD to update.
2314
+ */
2315
+ where: Prisma.PRDWhereUniqueInput
2316
+ }
2317
+
2318
+ /**
2319
+ * PRD updateMany
2320
+ */
2321
+ export type PRDUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2322
+ /**
2323
+ * The data used to update PRDS.
2324
+ */
2325
+ data: Prisma.XOR<Prisma.PRDUpdateManyMutationInput, Prisma.PRDUncheckedUpdateManyInput>
2326
+ /**
2327
+ * Filter which PRDS to update
2328
+ */
2329
+ where?: Prisma.PRDWhereInput
2330
+ /**
2331
+ * Limit how many PRDS to update.
2332
+ */
2333
+ limit?: number
2334
+ }
2335
+
2336
+ /**
2337
+ * PRD updateManyAndReturn
2338
+ */
2339
+ export type PRDUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2340
+ /**
2341
+ * Select specific fields to fetch from the PRD
2342
+ */
2343
+ select?: Prisma.PRDSelectUpdateManyAndReturn<ExtArgs> | null
2344
+ /**
2345
+ * Omit specific fields from the PRD
2346
+ */
2347
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2348
+ /**
2349
+ * The data used to update PRDS.
2350
+ */
2351
+ data: Prisma.XOR<Prisma.PRDUpdateManyMutationInput, Prisma.PRDUncheckedUpdateManyInput>
2352
+ /**
2353
+ * Filter which PRDS to update
2354
+ */
2355
+ where?: Prisma.PRDWhereInput
2356
+ /**
2357
+ * Limit how many PRDS to update.
2358
+ */
2359
+ limit?: number
2360
+ /**
2361
+ * Choose, which related nodes to fetch as well
2362
+ */
2363
+ include?: Prisma.PRDIncludeUpdateManyAndReturn<ExtArgs> | null
2364
+ }
2365
+
2366
+ /**
2367
+ * PRD upsert
2368
+ */
2369
+ export type PRDUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2370
+ /**
2371
+ * Select specific fields to fetch from the PRD
2372
+ */
2373
+ select?: Prisma.PRDSelect<ExtArgs> | null
2374
+ /**
2375
+ * Omit specific fields from the PRD
2376
+ */
2377
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2378
+ /**
2379
+ * Choose, which related nodes to fetch as well
2380
+ */
2381
+ include?: Prisma.PRDInclude<ExtArgs> | null
2382
+ /**
2383
+ * The filter to search for the PRD to update in case it exists.
2384
+ */
2385
+ where: Prisma.PRDWhereUniqueInput
2386
+ /**
2387
+ * In case the PRD found by the `where` argument doesn't exist, create a new PRD with this data.
2388
+ */
2389
+ create: Prisma.XOR<Prisma.PRDCreateInput, Prisma.PRDUncheckedCreateInput>
2390
+ /**
2391
+ * In case the PRD was found with the provided `where` argument, update it with this data.
2392
+ */
2393
+ update: Prisma.XOR<Prisma.PRDUpdateInput, Prisma.PRDUncheckedUpdateInput>
2394
+ }
2395
+
2396
+ /**
2397
+ * PRD delete
2398
+ */
2399
+ export type PRDDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2400
+ /**
2401
+ * Select specific fields to fetch from the PRD
2402
+ */
2403
+ select?: Prisma.PRDSelect<ExtArgs> | null
2404
+ /**
2405
+ * Omit specific fields from the PRD
2406
+ */
2407
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2408
+ /**
2409
+ * Choose, which related nodes to fetch as well
2410
+ */
2411
+ include?: Prisma.PRDInclude<ExtArgs> | null
2412
+ /**
2413
+ * Filter which PRD to delete.
2414
+ */
2415
+ where: Prisma.PRDWhereUniqueInput
2416
+ }
2417
+
2418
+ /**
2419
+ * PRD deleteMany
2420
+ */
2421
+ export type PRDDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2422
+ /**
2423
+ * Filter which PRDS to delete
2424
+ */
2425
+ where?: Prisma.PRDWhereInput
2426
+ /**
2427
+ * Limit how many PRDS to delete.
2428
+ */
2429
+ limit?: number
2430
+ }
2431
+
2432
+ /**
2433
+ * PRD.pages
2434
+ */
2435
+ export type PRD$pagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2436
+ /**
2437
+ * Select specific fields to fetch from the PRDPage
2438
+ */
2439
+ select?: Prisma.PRDPageSelect<ExtArgs> | null
2440
+ /**
2441
+ * Omit specific fields from the PRDPage
2442
+ */
2443
+ omit?: Prisma.PRDPageOmit<ExtArgs> | null
2444
+ /**
2445
+ * Choose, which related nodes to fetch as well
2446
+ */
2447
+ include?: Prisma.PRDPageInclude<ExtArgs> | null
2448
+ where?: Prisma.PRDPageWhereInput
2449
+ orderBy?: Prisma.PRDPageOrderByWithRelationInput | Prisma.PRDPageOrderByWithRelationInput[]
2450
+ cursor?: Prisma.PRDPageWhereUniqueInput
2451
+ take?: number
2452
+ skip?: number
2453
+ distinct?: Prisma.PRDPageScalarFieldEnum | Prisma.PRDPageScalarFieldEnum[]
2454
+ }
2455
+
2456
+ /**
2457
+ * PRD.versions
2458
+ */
2459
+ export type PRD$versionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2460
+ /**
2461
+ * Select specific fields to fetch from the PRDVersion
2462
+ */
2463
+ select?: Prisma.PRDVersionSelect<ExtArgs> | null
2464
+ /**
2465
+ * Omit specific fields from the PRDVersion
2466
+ */
2467
+ omit?: Prisma.PRDVersionOmit<ExtArgs> | null
2468
+ /**
2469
+ * Choose, which related nodes to fetch as well
2470
+ */
2471
+ include?: Prisma.PRDVersionInclude<ExtArgs> | null
2472
+ where?: Prisma.PRDVersionWhereInput
2473
+ orderBy?: Prisma.PRDVersionOrderByWithRelationInput | Prisma.PRDVersionOrderByWithRelationInput[]
2474
+ cursor?: Prisma.PRDVersionWhereUniqueInput
2475
+ take?: number
2476
+ skip?: number
2477
+ distinct?: Prisma.PRDVersionScalarFieldEnum | Prisma.PRDVersionScalarFieldEnum[]
2478
+ }
2479
+
2480
+ /**
2481
+ * PRD.reviews
2482
+ */
2483
+ export type PRD$reviewsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2484
+ /**
2485
+ * Select specific fields to fetch from the Review
2486
+ */
2487
+ select?: Prisma.ReviewSelect<ExtArgs> | null
2488
+ /**
2489
+ * Omit specific fields from the Review
2490
+ */
2491
+ omit?: Prisma.ReviewOmit<ExtArgs> | null
2492
+ /**
2493
+ * Choose, which related nodes to fetch as well
2494
+ */
2495
+ include?: Prisma.ReviewInclude<ExtArgs> | null
2496
+ where?: Prisma.ReviewWhereInput
2497
+ orderBy?: Prisma.ReviewOrderByWithRelationInput | Prisma.ReviewOrderByWithRelationInput[]
2498
+ cursor?: Prisma.ReviewWhereUniqueInput
2499
+ take?: number
2500
+ skip?: number
2501
+ distinct?: Prisma.ReviewScalarFieldEnum | Prisma.ReviewScalarFieldEnum[]
2502
+ }
2503
+
2504
+ /**
2505
+ * PRD.comments
2506
+ */
2507
+ export type PRD$commentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2508
+ /**
2509
+ * Select specific fields to fetch from the Comment
2510
+ */
2511
+ select?: Prisma.CommentSelect<ExtArgs> | null
2512
+ /**
2513
+ * Omit specific fields from the Comment
2514
+ */
2515
+ omit?: Prisma.CommentOmit<ExtArgs> | null
2516
+ /**
2517
+ * Choose, which related nodes to fetch as well
2518
+ */
2519
+ include?: Prisma.CommentInclude<ExtArgs> | null
2520
+ where?: Prisma.CommentWhereInput
2521
+ orderBy?: Prisma.CommentOrderByWithRelationInput | Prisma.CommentOrderByWithRelationInput[]
2522
+ cursor?: Prisma.CommentWhereUniqueInput
2523
+ take?: number
2524
+ skip?: number
2525
+ distinct?: Prisma.CommentScalarFieldEnum | Prisma.CommentScalarFieldEnum[]
2526
+ }
2527
+
2528
+ /**
2529
+ * PRD.shares
2530
+ */
2531
+ export type PRD$sharesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2532
+ /**
2533
+ * Select specific fields to fetch from the Share
2534
+ */
2535
+ select?: Prisma.ShareSelect<ExtArgs> | null
2536
+ /**
2537
+ * Omit specific fields from the Share
2538
+ */
2539
+ omit?: Prisma.ShareOmit<ExtArgs> | null
2540
+ /**
2541
+ * Choose, which related nodes to fetch as well
2542
+ */
2543
+ include?: Prisma.ShareInclude<ExtArgs> | null
2544
+ where?: Prisma.ShareWhereInput
2545
+ orderBy?: Prisma.ShareOrderByWithRelationInput | Prisma.ShareOrderByWithRelationInput[]
2546
+ cursor?: Prisma.ShareWhereUniqueInput
2547
+ take?: number
2548
+ skip?: number
2549
+ distinct?: Prisma.ShareScalarFieldEnum | Prisma.ShareScalarFieldEnum[]
2550
+ }
2551
+
2552
+ /**
2553
+ * PRD.prdTags
2554
+ */
2555
+ export type PRD$prdTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2556
+ /**
2557
+ * Select specific fields to fetch from the PRDTag
2558
+ */
2559
+ select?: Prisma.PRDTagSelect<ExtArgs> | null
2560
+ /**
2561
+ * Omit specific fields from the PRDTag
2562
+ */
2563
+ omit?: Prisma.PRDTagOmit<ExtArgs> | null
2564
+ /**
2565
+ * Choose, which related nodes to fetch as well
2566
+ */
2567
+ include?: Prisma.PRDTagInclude<ExtArgs> | null
2568
+ where?: Prisma.PRDTagWhereInput
2569
+ orderBy?: Prisma.PRDTagOrderByWithRelationInput | Prisma.PRDTagOrderByWithRelationInput[]
2570
+ cursor?: Prisma.PRDTagWhereUniqueInput
2571
+ take?: number
2572
+ skip?: number
2573
+ distinct?: Prisma.PRDTagScalarFieldEnum | Prisma.PRDTagScalarFieldEnum[]
2574
+ }
2575
+
2576
+ /**
2577
+ * PRD.agentConversations
2578
+ */
2579
+ export type PRD$agentConversationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2580
+ /**
2581
+ * Select specific fields to fetch from the AgentConversation
2582
+ */
2583
+ select?: Prisma.AgentConversationSelect<ExtArgs> | null
2584
+ /**
2585
+ * Omit specific fields from the AgentConversation
2586
+ */
2587
+ omit?: Prisma.AgentConversationOmit<ExtArgs> | null
2588
+ /**
2589
+ * Choose, which related nodes to fetch as well
2590
+ */
2591
+ include?: Prisma.AgentConversationInclude<ExtArgs> | null
2592
+ where?: Prisma.AgentConversationWhereInput
2593
+ orderBy?: Prisma.AgentConversationOrderByWithRelationInput | Prisma.AgentConversationOrderByWithRelationInput[]
2594
+ cursor?: Prisma.AgentConversationWhereUniqueInput
2595
+ take?: number
2596
+ skip?: number
2597
+ distinct?: Prisma.AgentConversationScalarFieldEnum | Prisma.AgentConversationScalarFieldEnum[]
2598
+ }
2599
+
2600
+ /**
2601
+ * PRD without action
2602
+ */
2603
+ export type PRDDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2604
+ /**
2605
+ * Select specific fields to fetch from the PRD
2606
+ */
2607
+ select?: Prisma.PRDSelect<ExtArgs> | null
2608
+ /**
2609
+ * Omit specific fields from the PRD
2610
+ */
2611
+ omit?: Prisma.PRDOmit<ExtArgs> | null
2612
+ /**
2613
+ * Choose, which related nodes to fetch as well
2614
+ */
2615
+ include?: Prisma.PRDInclude<ExtArgs> | null
2616
+ }