@allbluecn/database 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1533 @@
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 `AuditLog` 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 AuditLog
17
+ *
18
+ */
19
+ export type AuditLogModel = runtime.Types.Result.DefaultSelection<Prisma.$AuditLogPayload>
20
+
21
+ export type AggregateAuditLog = {
22
+ _count: AuditLogCountAggregateOutputType | null
23
+ _min: AuditLogMinAggregateOutputType | null
24
+ _max: AuditLogMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type AuditLogMinAggregateOutputType = {
28
+ id: string | null
29
+ workspaceId: string | null
30
+ userId: string | null
31
+ action: string | null
32
+ resourceType: string | null
33
+ resourceId: string | null
34
+ ip: string | null
35
+ userAgent: string | null
36
+ createdAt: Date | null
37
+ }
38
+
39
+ export type AuditLogMaxAggregateOutputType = {
40
+ id: string | null
41
+ workspaceId: string | null
42
+ userId: string | null
43
+ action: string | null
44
+ resourceType: string | null
45
+ resourceId: string | null
46
+ ip: string | null
47
+ userAgent: string | null
48
+ createdAt: Date | null
49
+ }
50
+
51
+ export type AuditLogCountAggregateOutputType = {
52
+ id: number
53
+ workspaceId: number
54
+ userId: number
55
+ action: number
56
+ resourceType: number
57
+ resourceId: number
58
+ metadata: number
59
+ ip: number
60
+ userAgent: number
61
+ createdAt: number
62
+ _all: number
63
+ }
64
+
65
+
66
+ export type AuditLogMinAggregateInputType = {
67
+ id?: true
68
+ workspaceId?: true
69
+ userId?: true
70
+ action?: true
71
+ resourceType?: true
72
+ resourceId?: true
73
+ ip?: true
74
+ userAgent?: true
75
+ createdAt?: true
76
+ }
77
+
78
+ export type AuditLogMaxAggregateInputType = {
79
+ id?: true
80
+ workspaceId?: true
81
+ userId?: true
82
+ action?: true
83
+ resourceType?: true
84
+ resourceId?: true
85
+ ip?: true
86
+ userAgent?: true
87
+ createdAt?: true
88
+ }
89
+
90
+ export type AuditLogCountAggregateInputType = {
91
+ id?: true
92
+ workspaceId?: true
93
+ userId?: true
94
+ action?: true
95
+ resourceType?: true
96
+ resourceId?: true
97
+ metadata?: true
98
+ ip?: true
99
+ userAgent?: true
100
+ createdAt?: true
101
+ _all?: true
102
+ }
103
+
104
+ export type AuditLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
105
+ /**
106
+ * Filter which AuditLog to aggregate.
107
+ */
108
+ where?: Prisma.AuditLogWhereInput
109
+ /**
110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
111
+ *
112
+ * Determine the order of AuditLogs to fetch.
113
+ */
114
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
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.AuditLogWhereUniqueInput
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
123
+ *
124
+ * Take `±n` AuditLogs 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` AuditLogs.
131
+ */
132
+ skip?: number
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
135
+ *
136
+ * Count returned AuditLogs
137
+ **/
138
+ _count?: true | AuditLogCountAggregateInputType
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?: AuditLogMinAggregateInputType
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?: AuditLogMaxAggregateInputType
151
+ }
152
+
153
+ export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
154
+ [P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count'
155
+ ? T[P] extends true
156
+ ? number
157
+ : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
158
+ : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
159
+ }
160
+
161
+
162
+
163
+
164
+ export type AuditLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
165
+ where?: Prisma.AuditLogWhereInput
166
+ orderBy?: Prisma.AuditLogOrderByWithAggregationInput | Prisma.AuditLogOrderByWithAggregationInput[]
167
+ by: Prisma.AuditLogScalarFieldEnum[] | Prisma.AuditLogScalarFieldEnum
168
+ having?: Prisma.AuditLogScalarWhereWithAggregatesInput
169
+ take?: number
170
+ skip?: number
171
+ _count?: AuditLogCountAggregateInputType | true
172
+ _min?: AuditLogMinAggregateInputType
173
+ _max?: AuditLogMaxAggregateInputType
174
+ }
175
+
176
+ export type AuditLogGroupByOutputType = {
177
+ id: string
178
+ workspaceId: string | null
179
+ userId: string | null
180
+ action: string
181
+ resourceType: string
182
+ resourceId: string | null
183
+ metadata: runtime.JsonValue
184
+ ip: string | null
185
+ userAgent: string | null
186
+ createdAt: Date
187
+ _count: AuditLogCountAggregateOutputType | null
188
+ _min: AuditLogMinAggregateOutputType | null
189
+ _max: AuditLogMaxAggregateOutputType | null
190
+ }
191
+
192
+ export type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<
193
+ Array<
194
+ Prisma.PickEnumerable<AuditLogGroupByOutputType, T['by']> &
195
+ {
196
+ [P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count'
197
+ ? T[P] extends boolean
198
+ ? number
199
+ : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
200
+ : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
201
+ }
202
+ >
203
+ >
204
+
205
+
206
+
207
+ export type AuditLogWhereInput = {
208
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
209
+ OR?: Prisma.AuditLogWhereInput[]
210
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
211
+ id?: Prisma.StringFilter<"AuditLog"> | string
212
+ workspaceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
213
+ userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
214
+ action?: Prisma.StringFilter<"AuditLog"> | string
215
+ resourceType?: Prisma.StringFilter<"AuditLog"> | string
216
+ resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
217
+ metadata?: Prisma.JsonFilter<"AuditLog">
218
+ ip?: Prisma.StringNullableFilter<"AuditLog"> | string | null
219
+ userAgent?: Prisma.StringNullableFilter<"AuditLog"> | string | null
220
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
221
+ workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
222
+ }
223
+
224
+ export type AuditLogOrderByWithRelationInput = {
225
+ id?: Prisma.SortOrder
226
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
227
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
228
+ action?: Prisma.SortOrder
229
+ resourceType?: Prisma.SortOrder
230
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
231
+ metadata?: Prisma.SortOrder
232
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
233
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
234
+ createdAt?: Prisma.SortOrder
235
+ workspace?: Prisma.WorkspaceOrderByWithRelationInput
236
+ }
237
+
238
+ export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
239
+ id?: string
240
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
241
+ OR?: Prisma.AuditLogWhereInput[]
242
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
243
+ workspaceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
244
+ userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
245
+ action?: Prisma.StringFilter<"AuditLog"> | string
246
+ resourceType?: Prisma.StringFilter<"AuditLog"> | string
247
+ resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
248
+ metadata?: Prisma.JsonFilter<"AuditLog">
249
+ ip?: Prisma.StringNullableFilter<"AuditLog"> | string | null
250
+ userAgent?: Prisma.StringNullableFilter<"AuditLog"> | string | null
251
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
252
+ workspace?: Prisma.XOR<Prisma.WorkspaceNullableScalarRelationFilter, Prisma.WorkspaceWhereInput> | null
253
+ }, "id">
254
+
255
+ export type AuditLogOrderByWithAggregationInput = {
256
+ id?: Prisma.SortOrder
257
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
258
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
259
+ action?: Prisma.SortOrder
260
+ resourceType?: Prisma.SortOrder
261
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
262
+ metadata?: Prisma.SortOrder
263
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
264
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
265
+ createdAt?: Prisma.SortOrder
266
+ _count?: Prisma.AuditLogCountOrderByAggregateInput
267
+ _max?: Prisma.AuditLogMaxOrderByAggregateInput
268
+ _min?: Prisma.AuditLogMinOrderByAggregateInput
269
+ }
270
+
271
+ export type AuditLogScalarWhereWithAggregatesInput = {
272
+ AND?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
273
+ OR?: Prisma.AuditLogScalarWhereWithAggregatesInput[]
274
+ NOT?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
275
+ id?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
276
+ workspaceId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
277
+ userId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
278
+ action?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
279
+ resourceType?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
280
+ resourceId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
281
+ metadata?: Prisma.JsonWithAggregatesFilter<"AuditLog">
282
+ ip?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
283
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
284
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
285
+ }
286
+
287
+ export type AuditLogCreateInput = {
288
+ id?: string
289
+ userId?: string | null
290
+ action: string
291
+ resourceType: string
292
+ resourceId?: string | null
293
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
294
+ ip?: string | null
295
+ userAgent?: string | null
296
+ createdAt?: Date | string
297
+ workspace?: Prisma.WorkspaceCreateNestedOneWithoutAuditLogsInput
298
+ }
299
+
300
+ export type AuditLogUncheckedCreateInput = {
301
+ id?: string
302
+ workspaceId?: string | null
303
+ userId?: string | null
304
+ action: string
305
+ resourceType: string
306
+ resourceId?: string | null
307
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
308
+ ip?: string | null
309
+ userAgent?: string | null
310
+ createdAt?: Date | string
311
+ }
312
+
313
+ export type AuditLogUpdateInput = {
314
+ id?: Prisma.StringFieldUpdateOperationsInput | string
315
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
316
+ action?: Prisma.StringFieldUpdateOperationsInput | string
317
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
318
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
319
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
320
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
321
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
322
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
323
+ workspace?: Prisma.WorkspaceUpdateOneWithoutAuditLogsNestedInput
324
+ }
325
+
326
+ export type AuditLogUncheckedUpdateInput = {
327
+ id?: Prisma.StringFieldUpdateOperationsInput | string
328
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
329
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
330
+ action?: Prisma.StringFieldUpdateOperationsInput | string
331
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
332
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
333
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
334
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
335
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
336
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
337
+ }
338
+
339
+ export type AuditLogCreateManyInput = {
340
+ id?: string
341
+ workspaceId?: string | null
342
+ userId?: string | null
343
+ action: string
344
+ resourceType: string
345
+ resourceId?: string | null
346
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
347
+ ip?: string | null
348
+ userAgent?: string | null
349
+ createdAt?: Date | string
350
+ }
351
+
352
+ export type AuditLogUpdateManyMutationInput = {
353
+ id?: Prisma.StringFieldUpdateOperationsInput | string
354
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
355
+ action?: Prisma.StringFieldUpdateOperationsInput | string
356
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
357
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
358
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
359
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
361
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ }
363
+
364
+ export type AuditLogUncheckedUpdateManyInput = {
365
+ id?: Prisma.StringFieldUpdateOperationsInput | string
366
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
367
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
368
+ action?: Prisma.StringFieldUpdateOperationsInput | string
369
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
370
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
371
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
372
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
374
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
375
+ }
376
+
377
+ export type AuditLogListRelationFilter = {
378
+ every?: Prisma.AuditLogWhereInput
379
+ some?: Prisma.AuditLogWhereInput
380
+ none?: Prisma.AuditLogWhereInput
381
+ }
382
+
383
+ export type AuditLogOrderByRelationAggregateInput = {
384
+ _count?: Prisma.SortOrder
385
+ }
386
+
387
+ export type AuditLogCountOrderByAggregateInput = {
388
+ id?: Prisma.SortOrder
389
+ workspaceId?: Prisma.SortOrder
390
+ userId?: Prisma.SortOrder
391
+ action?: Prisma.SortOrder
392
+ resourceType?: Prisma.SortOrder
393
+ resourceId?: Prisma.SortOrder
394
+ metadata?: Prisma.SortOrder
395
+ ip?: Prisma.SortOrder
396
+ userAgent?: Prisma.SortOrder
397
+ createdAt?: Prisma.SortOrder
398
+ }
399
+
400
+ export type AuditLogMaxOrderByAggregateInput = {
401
+ id?: Prisma.SortOrder
402
+ workspaceId?: Prisma.SortOrder
403
+ userId?: Prisma.SortOrder
404
+ action?: Prisma.SortOrder
405
+ resourceType?: Prisma.SortOrder
406
+ resourceId?: Prisma.SortOrder
407
+ ip?: Prisma.SortOrder
408
+ userAgent?: Prisma.SortOrder
409
+ createdAt?: Prisma.SortOrder
410
+ }
411
+
412
+ export type AuditLogMinOrderByAggregateInput = {
413
+ id?: Prisma.SortOrder
414
+ workspaceId?: Prisma.SortOrder
415
+ userId?: Prisma.SortOrder
416
+ action?: Prisma.SortOrder
417
+ resourceType?: Prisma.SortOrder
418
+ resourceId?: Prisma.SortOrder
419
+ ip?: Prisma.SortOrder
420
+ userAgent?: Prisma.SortOrder
421
+ createdAt?: Prisma.SortOrder
422
+ }
423
+
424
+ export type AuditLogCreateNestedManyWithoutWorkspaceInput = {
425
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput> | Prisma.AuditLogCreateWithoutWorkspaceInput[] | Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput[]
426
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput | Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput[]
427
+ createMany?: Prisma.AuditLogCreateManyWorkspaceInputEnvelope
428
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
429
+ }
430
+
431
+ export type AuditLogUncheckedCreateNestedManyWithoutWorkspaceInput = {
432
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput> | Prisma.AuditLogCreateWithoutWorkspaceInput[] | Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput[]
433
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput | Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput[]
434
+ createMany?: Prisma.AuditLogCreateManyWorkspaceInputEnvelope
435
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
436
+ }
437
+
438
+ export type AuditLogUpdateManyWithoutWorkspaceNestedInput = {
439
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput> | Prisma.AuditLogCreateWithoutWorkspaceInput[] | Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput[]
440
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput | Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput[]
441
+ upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
442
+ createMany?: Prisma.AuditLogCreateManyWorkspaceInputEnvelope
443
+ set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
444
+ disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
445
+ delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
446
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
447
+ update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
448
+ updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutWorkspaceInput | Prisma.AuditLogUpdateManyWithWhereWithoutWorkspaceInput[]
449
+ deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
450
+ }
451
+
452
+ export type AuditLogUncheckedUpdateManyWithoutWorkspaceNestedInput = {
453
+ create?: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput> | Prisma.AuditLogCreateWithoutWorkspaceInput[] | Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput[]
454
+ connectOrCreate?: Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput | Prisma.AuditLogCreateOrConnectWithoutWorkspaceInput[]
455
+ upsert?: Prisma.AuditLogUpsertWithWhereUniqueWithoutWorkspaceInput | Prisma.AuditLogUpsertWithWhereUniqueWithoutWorkspaceInput[]
456
+ createMany?: Prisma.AuditLogCreateManyWorkspaceInputEnvelope
457
+ set?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
458
+ disconnect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
459
+ delete?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
460
+ connect?: Prisma.AuditLogWhereUniqueInput | Prisma.AuditLogWhereUniqueInput[]
461
+ update?: Prisma.AuditLogUpdateWithWhereUniqueWithoutWorkspaceInput | Prisma.AuditLogUpdateWithWhereUniqueWithoutWorkspaceInput[]
462
+ updateMany?: Prisma.AuditLogUpdateManyWithWhereWithoutWorkspaceInput | Prisma.AuditLogUpdateManyWithWhereWithoutWorkspaceInput[]
463
+ deleteMany?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
464
+ }
465
+
466
+ export type AuditLogCreateWithoutWorkspaceInput = {
467
+ id?: string
468
+ userId?: string | null
469
+ action: string
470
+ resourceType: string
471
+ resourceId?: string | null
472
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
473
+ ip?: string | null
474
+ userAgent?: string | null
475
+ createdAt?: Date | string
476
+ }
477
+
478
+ export type AuditLogUncheckedCreateWithoutWorkspaceInput = {
479
+ id?: string
480
+ userId?: string | null
481
+ action: string
482
+ resourceType: string
483
+ resourceId?: string | null
484
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
485
+ ip?: string | null
486
+ userAgent?: string | null
487
+ createdAt?: Date | string
488
+ }
489
+
490
+ export type AuditLogCreateOrConnectWithoutWorkspaceInput = {
491
+ where: Prisma.AuditLogWhereUniqueInput
492
+ create: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput>
493
+ }
494
+
495
+ export type AuditLogCreateManyWorkspaceInputEnvelope = {
496
+ data: Prisma.AuditLogCreateManyWorkspaceInput | Prisma.AuditLogCreateManyWorkspaceInput[]
497
+ skipDuplicates?: boolean
498
+ }
499
+
500
+ export type AuditLogUpsertWithWhereUniqueWithoutWorkspaceInput = {
501
+ where: Prisma.AuditLogWhereUniqueInput
502
+ update: Prisma.XOR<Prisma.AuditLogUpdateWithoutWorkspaceInput, Prisma.AuditLogUncheckedUpdateWithoutWorkspaceInput>
503
+ create: Prisma.XOR<Prisma.AuditLogCreateWithoutWorkspaceInput, Prisma.AuditLogUncheckedCreateWithoutWorkspaceInput>
504
+ }
505
+
506
+ export type AuditLogUpdateWithWhereUniqueWithoutWorkspaceInput = {
507
+ where: Prisma.AuditLogWhereUniqueInput
508
+ data: Prisma.XOR<Prisma.AuditLogUpdateWithoutWorkspaceInput, Prisma.AuditLogUncheckedUpdateWithoutWorkspaceInput>
509
+ }
510
+
511
+ export type AuditLogUpdateManyWithWhereWithoutWorkspaceInput = {
512
+ where: Prisma.AuditLogScalarWhereInput
513
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyWithoutWorkspaceInput>
514
+ }
515
+
516
+ export type AuditLogScalarWhereInput = {
517
+ AND?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
518
+ OR?: Prisma.AuditLogScalarWhereInput[]
519
+ NOT?: Prisma.AuditLogScalarWhereInput | Prisma.AuditLogScalarWhereInput[]
520
+ id?: Prisma.StringFilter<"AuditLog"> | string
521
+ workspaceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
522
+ userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
523
+ action?: Prisma.StringFilter<"AuditLog"> | string
524
+ resourceType?: Prisma.StringFilter<"AuditLog"> | string
525
+ resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
526
+ metadata?: Prisma.JsonFilter<"AuditLog">
527
+ ip?: Prisma.StringNullableFilter<"AuditLog"> | string | null
528
+ userAgent?: Prisma.StringNullableFilter<"AuditLog"> | string | null
529
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
530
+ }
531
+
532
+ export type AuditLogCreateManyWorkspaceInput = {
533
+ id?: string
534
+ userId?: string | null
535
+ action: string
536
+ resourceType: string
537
+ resourceId?: string | null
538
+ metadata: Prisma.JsonNullValueInput | runtime.InputJsonValue
539
+ ip?: string | null
540
+ userAgent?: string | null
541
+ createdAt?: Date | string
542
+ }
543
+
544
+ export type AuditLogUpdateWithoutWorkspaceInput = {
545
+ id?: Prisma.StringFieldUpdateOperationsInput | string
546
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
547
+ action?: Prisma.StringFieldUpdateOperationsInput | string
548
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
549
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
550
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
551
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
552
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
553
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
554
+ }
555
+
556
+ export type AuditLogUncheckedUpdateWithoutWorkspaceInput = {
557
+ id?: Prisma.StringFieldUpdateOperationsInput | string
558
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
559
+ action?: Prisma.StringFieldUpdateOperationsInput | string
560
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
561
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
562
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
563
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
564
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
565
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
566
+ }
567
+
568
+ export type AuditLogUncheckedUpdateManyWithoutWorkspaceInput = {
569
+ id?: Prisma.StringFieldUpdateOperationsInput | string
570
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
571
+ action?: Prisma.StringFieldUpdateOperationsInput | string
572
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
573
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
574
+ metadata?: Prisma.JsonNullValueInput | runtime.InputJsonValue
575
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
576
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
577
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
578
+ }
579
+
580
+
581
+
582
+ export type AuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
583
+ id?: boolean
584
+ workspaceId?: boolean
585
+ userId?: boolean
586
+ action?: boolean
587
+ resourceType?: boolean
588
+ resourceId?: boolean
589
+ metadata?: boolean
590
+ ip?: boolean
591
+ userAgent?: boolean
592
+ createdAt?: boolean
593
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
594
+ }, ExtArgs["result"]["auditLog"]>
595
+
596
+ export type AuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
597
+ id?: boolean
598
+ workspaceId?: boolean
599
+ userId?: boolean
600
+ action?: boolean
601
+ resourceType?: boolean
602
+ resourceId?: boolean
603
+ metadata?: boolean
604
+ ip?: boolean
605
+ userAgent?: boolean
606
+ createdAt?: boolean
607
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
608
+ }, ExtArgs["result"]["auditLog"]>
609
+
610
+ export type AuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
611
+ id?: boolean
612
+ workspaceId?: boolean
613
+ userId?: boolean
614
+ action?: boolean
615
+ resourceType?: boolean
616
+ resourceId?: boolean
617
+ metadata?: boolean
618
+ ip?: boolean
619
+ userAgent?: boolean
620
+ createdAt?: boolean
621
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
622
+ }, ExtArgs["result"]["auditLog"]>
623
+
624
+ export type AuditLogSelectScalar = {
625
+ id?: boolean
626
+ workspaceId?: boolean
627
+ userId?: boolean
628
+ action?: boolean
629
+ resourceType?: boolean
630
+ resourceId?: boolean
631
+ metadata?: boolean
632
+ ip?: boolean
633
+ userAgent?: boolean
634
+ createdAt?: boolean
635
+ }
636
+
637
+ export type AuditLogOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "workspaceId" | "userId" | "action" | "resourceType" | "resourceId" | "metadata" | "ip" | "userAgent" | "createdAt", ExtArgs["result"]["auditLog"]>
638
+ export type AuditLogInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
639
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
640
+ }
641
+ export type AuditLogIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
642
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
643
+ }
644
+ export type AuditLogIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
645
+ workspace?: boolean | Prisma.AuditLog$workspaceArgs<ExtArgs>
646
+ }
647
+
648
+ export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
+ name: "AuditLog"
650
+ objects: {
651
+ workspace: Prisma.$WorkspacePayload<ExtArgs> | null
652
+ }
653
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
654
+ id: string
655
+ workspaceId: string | null
656
+ userId: string | null
657
+ action: string
658
+ resourceType: string
659
+ resourceId: string | null
660
+ metadata: runtime.JsonValue
661
+ ip: string | null
662
+ userAgent: string | null
663
+ createdAt: Date
664
+ }, ExtArgs["result"]["auditLog"]>
665
+ composites: {}
666
+ }
667
+
668
+ export type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditLogPayload, S>
669
+
670
+ export type AuditLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
671
+ Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
672
+ select?: AuditLogCountAggregateInputType | true
673
+ }
674
+
675
+ export interface AuditLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
676
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'], meta: { name: 'AuditLog' } }
677
+ /**
678
+ * Find zero or one AuditLog that matches the filter.
679
+ * @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
680
+ * @example
681
+ * // Get one AuditLog
682
+ * const auditLog = await prisma.auditLog.findUnique({
683
+ * where: {
684
+ * // ... provide filter here
685
+ * }
686
+ * })
687
+ */
688
+ findUnique<T extends AuditLogFindUniqueArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
689
+
690
+ /**
691
+ * Find one AuditLog that matches the filter or throw an error with `error.code='P2025'`
692
+ * if no matches were found.
693
+ * @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
694
+ * @example
695
+ * // Get one AuditLog
696
+ * const auditLog = await prisma.auditLog.findUniqueOrThrow({
697
+ * where: {
698
+ * // ... provide filter here
699
+ * }
700
+ * })
701
+ */
702
+ findUniqueOrThrow<T extends AuditLogFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AuditLogFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
703
+
704
+ /**
705
+ * Find the first AuditLog that matches the filter.
706
+ * Note, that providing `undefined` is treated as the value not being there.
707
+ * Read more here: https://pris.ly/d/null-undefined
708
+ * @param {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
709
+ * @example
710
+ * // Get one AuditLog
711
+ * const auditLog = await prisma.auditLog.findFirst({
712
+ * where: {
713
+ * // ... provide filter here
714
+ * }
715
+ * })
716
+ */
717
+ findFirst<T extends AuditLogFindFirstArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
718
+
719
+ /**
720
+ * Find the first AuditLog that matches the filter or
721
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
722
+ * Note, that providing `undefined` is treated as the value not being there.
723
+ * Read more here: https://pris.ly/d/null-undefined
724
+ * @param {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
725
+ * @example
726
+ * // Get one AuditLog
727
+ * const auditLog = await prisma.auditLog.findFirstOrThrow({
728
+ * where: {
729
+ * // ... provide filter here
730
+ * }
731
+ * })
732
+ */
733
+ findFirstOrThrow<T extends AuditLogFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AuditLogFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
734
+
735
+ /**
736
+ * Find zero or more AuditLogs that matches the filter.
737
+ * Note, that providing `undefined` is treated as the value not being there.
738
+ * Read more here: https://pris.ly/d/null-undefined
739
+ * @param {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
740
+ * @example
741
+ * // Get all AuditLogs
742
+ * const auditLogs = await prisma.auditLog.findMany()
743
+ *
744
+ * // Get first 10 AuditLogs
745
+ * const auditLogs = await prisma.auditLog.findMany({ take: 10 })
746
+ *
747
+ * // Only select the `id`
748
+ * const auditLogWithIdOnly = await prisma.auditLog.findMany({ select: { id: true } })
749
+ *
750
+ */
751
+ findMany<T extends AuditLogFindManyArgs>(args?: Prisma.SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
752
+
753
+ /**
754
+ * Create a AuditLog.
755
+ * @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
756
+ * @example
757
+ * // Create one AuditLog
758
+ * const AuditLog = await prisma.auditLog.create({
759
+ * data: {
760
+ * // ... data to create a AuditLog
761
+ * }
762
+ * })
763
+ *
764
+ */
765
+ create<T extends AuditLogCreateArgs>(args: Prisma.SelectSubset<T, AuditLogCreateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
766
+
767
+ /**
768
+ * Create many AuditLogs.
769
+ * @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
770
+ * @example
771
+ * // Create many AuditLogs
772
+ * const auditLog = await prisma.auditLog.createMany({
773
+ * data: [
774
+ * // ... provide data here
775
+ * ]
776
+ * })
777
+ *
778
+ */
779
+ createMany<T extends AuditLogCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
780
+
781
+ /**
782
+ * Create many AuditLogs and returns the data saved in the database.
783
+ * @param {AuditLogCreateManyAndReturnArgs} args - Arguments to create many AuditLogs.
784
+ * @example
785
+ * // Create many AuditLogs
786
+ * const auditLog = await prisma.auditLog.createManyAndReturn({
787
+ * data: [
788
+ * // ... provide data here
789
+ * ]
790
+ * })
791
+ *
792
+ * // Create many AuditLogs and only return the `id`
793
+ * const auditLogWithIdOnly = await prisma.auditLog.createManyAndReturn({
794
+ * select: { id: true },
795
+ * data: [
796
+ * // ... provide data here
797
+ * ]
798
+ * })
799
+ * Note, that providing `undefined` is treated as the value not being there.
800
+ * Read more here: https://pris.ly/d/null-undefined
801
+ *
802
+ */
803
+ createManyAndReturn<T extends AuditLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
804
+
805
+ /**
806
+ * Delete a AuditLog.
807
+ * @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
808
+ * @example
809
+ * // Delete one AuditLog
810
+ * const AuditLog = await prisma.auditLog.delete({
811
+ * where: {
812
+ * // ... filter to delete one AuditLog
813
+ * }
814
+ * })
815
+ *
816
+ */
817
+ delete<T extends AuditLogDeleteArgs>(args: Prisma.SelectSubset<T, AuditLogDeleteArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
818
+
819
+ /**
820
+ * Update one AuditLog.
821
+ * @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
822
+ * @example
823
+ * // Update one AuditLog
824
+ * const auditLog = await prisma.auditLog.update({
825
+ * where: {
826
+ * // ... provide filter here
827
+ * },
828
+ * data: {
829
+ * // ... provide data here
830
+ * }
831
+ * })
832
+ *
833
+ */
834
+ update<T extends AuditLogUpdateArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
835
+
836
+ /**
837
+ * Delete zero or more AuditLogs.
838
+ * @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
839
+ * @example
840
+ * // Delete a few AuditLogs
841
+ * const { count } = await prisma.auditLog.deleteMany({
842
+ * where: {
843
+ * // ... provide filter here
844
+ * }
845
+ * })
846
+ *
847
+ */
848
+ deleteMany<T extends AuditLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
849
+
850
+ /**
851
+ * Update zero or more AuditLogs.
852
+ * Note, that providing `undefined` is treated as the value not being there.
853
+ * Read more here: https://pris.ly/d/null-undefined
854
+ * @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
855
+ * @example
856
+ * // Update many AuditLogs
857
+ * const auditLog = await prisma.auditLog.updateMany({
858
+ * where: {
859
+ * // ... provide filter here
860
+ * },
861
+ * data: {
862
+ * // ... provide data here
863
+ * }
864
+ * })
865
+ *
866
+ */
867
+ updateMany<T extends AuditLogUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
868
+
869
+ /**
870
+ * Update zero or more AuditLogs and returns the data updated in the database.
871
+ * @param {AuditLogUpdateManyAndReturnArgs} args - Arguments to update many AuditLogs.
872
+ * @example
873
+ * // Update many AuditLogs
874
+ * const auditLog = await prisma.auditLog.updateManyAndReturn({
875
+ * where: {
876
+ * // ... provide filter here
877
+ * },
878
+ * data: [
879
+ * // ... provide data here
880
+ * ]
881
+ * })
882
+ *
883
+ * // Update zero or more AuditLogs and only return the `id`
884
+ * const auditLogWithIdOnly = await prisma.auditLog.updateManyAndReturn({
885
+ * select: { id: true },
886
+ * where: {
887
+ * // ... provide filter here
888
+ * },
889
+ * data: [
890
+ * // ... provide data here
891
+ * ]
892
+ * })
893
+ * Note, that providing `undefined` is treated as the value not being there.
894
+ * Read more here: https://pris.ly/d/null-undefined
895
+ *
896
+ */
897
+ updateManyAndReturn<T extends AuditLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
898
+
899
+ /**
900
+ * Create or update one AuditLog.
901
+ * @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
902
+ * @example
903
+ * // Update or create a AuditLog
904
+ * const auditLog = await prisma.auditLog.upsert({
905
+ * create: {
906
+ * // ... data to create a AuditLog
907
+ * },
908
+ * update: {
909
+ * // ... in case it already exists, update
910
+ * },
911
+ * where: {
912
+ * // ... the filter for the AuditLog we want to update
913
+ * }
914
+ * })
915
+ */
916
+ upsert<T extends AuditLogUpsertArgs>(args: Prisma.SelectSubset<T, AuditLogUpsertArgs<ExtArgs>>): Prisma.Prisma__AuditLogClient<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
917
+
918
+
919
+ /**
920
+ * Count the number of AuditLogs.
921
+ * Note, that providing `undefined` is treated as the value not being there.
922
+ * Read more here: https://pris.ly/d/null-undefined
923
+ * @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
924
+ * @example
925
+ * // Count the number of AuditLogs
926
+ * const count = await prisma.auditLog.count({
927
+ * where: {
928
+ * // ... the filter for the AuditLogs we want to count
929
+ * }
930
+ * })
931
+ **/
932
+ count<T extends AuditLogCountArgs>(
933
+ args?: Prisma.Subset<T, AuditLogCountArgs>,
934
+ ): Prisma.PrismaPromise<
935
+ T extends runtime.Types.Utils.Record<'select', any>
936
+ ? T['select'] extends true
937
+ ? number
938
+ : Prisma.GetScalarType<T['select'], AuditLogCountAggregateOutputType>
939
+ : number
940
+ >
941
+
942
+ /**
943
+ * Allows you to perform aggregations operations on a AuditLog.
944
+ * Note, that providing `undefined` is treated as the value not being there.
945
+ * Read more here: https://pris.ly/d/null-undefined
946
+ * @param {AuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
947
+ * @example
948
+ * // Ordered by age ascending
949
+ * // Where email contains prisma.io
950
+ * // Limited to the 10 users
951
+ * const aggregations = await prisma.user.aggregate({
952
+ * _avg: {
953
+ * age: true,
954
+ * },
955
+ * where: {
956
+ * email: {
957
+ * contains: "prisma.io",
958
+ * },
959
+ * },
960
+ * orderBy: {
961
+ * age: "asc",
962
+ * },
963
+ * take: 10,
964
+ * })
965
+ **/
966
+ aggregate<T extends AuditLogAggregateArgs>(args: Prisma.Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>
967
+
968
+ /**
969
+ * Group by AuditLog.
970
+ * Note, that providing `undefined` is treated as the value not being there.
971
+ * Read more here: https://pris.ly/d/null-undefined
972
+ * @param {AuditLogGroupByArgs} args - Group by arguments.
973
+ * @example
974
+ * // Group by city, order by createdAt, get count
975
+ * const result = await prisma.user.groupBy({
976
+ * by: ['city', 'createdAt'],
977
+ * orderBy: {
978
+ * createdAt: true
979
+ * },
980
+ * _count: {
981
+ * _all: true
982
+ * },
983
+ * })
984
+ *
985
+ **/
986
+ groupBy<
987
+ T extends AuditLogGroupByArgs,
988
+ HasSelectOrTake extends Prisma.Or<
989
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
990
+ Prisma.Extends<'take', Prisma.Keys<T>>
991
+ >,
992
+ OrderByArg extends Prisma.True extends HasSelectOrTake
993
+ ? { orderBy: AuditLogGroupByArgs['orderBy'] }
994
+ : { orderBy?: AuditLogGroupByArgs['orderBy'] },
995
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
996
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
997
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
998
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
999
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1000
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1001
+ InputErrors extends ByEmpty extends Prisma.True
1002
+ ? `Error: "by" must not be empty.`
1003
+ : HavingValid extends Prisma.False
1004
+ ? {
1005
+ [P in HavingFields]: P extends ByFields
1006
+ ? never
1007
+ : P extends string
1008
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1009
+ : [
1010
+ Error,
1011
+ 'Field ',
1012
+ P,
1013
+ ` in "having" needs to be provided in "by"`,
1014
+ ]
1015
+ }[HavingFields]
1016
+ : 'take' extends Prisma.Keys<T>
1017
+ ? 'orderBy' extends Prisma.Keys<T>
1018
+ ? ByValid extends Prisma.True
1019
+ ? {}
1020
+ : {
1021
+ [P in OrderFields]: P extends ByFields
1022
+ ? never
1023
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1024
+ }[OrderFields]
1025
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1026
+ : 'skip' extends Prisma.Keys<T>
1027
+ ? 'orderBy' extends Prisma.Keys<T>
1028
+ ? ByValid extends Prisma.True
1029
+ ? {}
1030
+ : {
1031
+ [P in OrderFields]: P extends ByFields
1032
+ ? never
1033
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1034
+ }[OrderFields]
1035
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1036
+ : ByValid extends Prisma.True
1037
+ ? {}
1038
+ : {
1039
+ [P in OrderFields]: P extends ByFields
1040
+ ? never
1041
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1042
+ }[OrderFields]
1043
+ >(args: Prisma.SubsetIntersection<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1044
+ /**
1045
+ * Fields of the AuditLog model
1046
+ */
1047
+ readonly fields: AuditLogFieldRefs;
1048
+ }
1049
+
1050
+ /**
1051
+ * The delegate class that acts as a "Promise-like" for AuditLog.
1052
+ * Why is this prefixed with `Prisma__`?
1053
+ * Because we want to prevent naming conflicts as mentioned in
1054
+ * https://github.com/prisma/prisma-client-js/issues/707
1055
+ */
1056
+ export interface Prisma__AuditLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1057
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1058
+ workspace<T extends Prisma.AuditLog$workspaceArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AuditLog$workspaceArgs<ExtArgs>>): Prisma.Prisma__WorkspaceClient<runtime.Types.Result.GetResult<Prisma.$WorkspacePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1059
+ /**
1060
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1061
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1062
+ * @param onrejected The callback to execute when the Promise is rejected.
1063
+ * @returns A Promise for the completion of which ever callback is executed.
1064
+ */
1065
+ 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>
1066
+ /**
1067
+ * Attaches a callback for only the rejection of the Promise.
1068
+ * @param onrejected The callback to execute when the Promise is rejected.
1069
+ * @returns A Promise for the completion of the callback.
1070
+ */
1071
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1072
+ /**
1073
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1074
+ * resolved value cannot be modified from the callback.
1075
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1076
+ * @returns A Promise for the completion of the callback.
1077
+ */
1078
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1079
+ }
1080
+
1081
+
1082
+
1083
+
1084
+ /**
1085
+ * Fields of the AuditLog model
1086
+ */
1087
+ export interface AuditLogFieldRefs {
1088
+ readonly id: Prisma.FieldRef<"AuditLog", 'String'>
1089
+ readonly workspaceId: Prisma.FieldRef<"AuditLog", 'String'>
1090
+ readonly userId: Prisma.FieldRef<"AuditLog", 'String'>
1091
+ readonly action: Prisma.FieldRef<"AuditLog", 'String'>
1092
+ readonly resourceType: Prisma.FieldRef<"AuditLog", 'String'>
1093
+ readonly resourceId: Prisma.FieldRef<"AuditLog", 'String'>
1094
+ readonly metadata: Prisma.FieldRef<"AuditLog", 'Json'>
1095
+ readonly ip: Prisma.FieldRef<"AuditLog", 'String'>
1096
+ readonly userAgent: Prisma.FieldRef<"AuditLog", 'String'>
1097
+ readonly createdAt: Prisma.FieldRef<"AuditLog", 'DateTime'>
1098
+ }
1099
+
1100
+
1101
+ // Custom InputTypes
1102
+ /**
1103
+ * AuditLog findUnique
1104
+ */
1105
+ export type AuditLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1106
+ /**
1107
+ * Select specific fields to fetch from the AuditLog
1108
+ */
1109
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1110
+ /**
1111
+ * Omit specific fields from the AuditLog
1112
+ */
1113
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1114
+ /**
1115
+ * Choose, which related nodes to fetch as well
1116
+ */
1117
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1118
+ /**
1119
+ * Filter, which AuditLog to fetch.
1120
+ */
1121
+ where: Prisma.AuditLogWhereUniqueInput
1122
+ }
1123
+
1124
+ /**
1125
+ * AuditLog findUniqueOrThrow
1126
+ */
1127
+ export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1128
+ /**
1129
+ * Select specific fields to fetch from the AuditLog
1130
+ */
1131
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1132
+ /**
1133
+ * Omit specific fields from the AuditLog
1134
+ */
1135
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1136
+ /**
1137
+ * Choose, which related nodes to fetch as well
1138
+ */
1139
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1140
+ /**
1141
+ * Filter, which AuditLog to fetch.
1142
+ */
1143
+ where: Prisma.AuditLogWhereUniqueInput
1144
+ }
1145
+
1146
+ /**
1147
+ * AuditLog findFirst
1148
+ */
1149
+ export type AuditLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1150
+ /**
1151
+ * Select specific fields to fetch from the AuditLog
1152
+ */
1153
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1154
+ /**
1155
+ * Omit specific fields from the AuditLog
1156
+ */
1157
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1158
+ /**
1159
+ * Choose, which related nodes to fetch as well
1160
+ */
1161
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1162
+ /**
1163
+ * Filter, which AuditLog to fetch.
1164
+ */
1165
+ where?: Prisma.AuditLogWhereInput
1166
+ /**
1167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1168
+ *
1169
+ * Determine the order of AuditLogs to fetch.
1170
+ */
1171
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
1172
+ /**
1173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1174
+ *
1175
+ * Sets the position for searching for AuditLogs.
1176
+ */
1177
+ cursor?: Prisma.AuditLogWhereUniqueInput
1178
+ /**
1179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1180
+ *
1181
+ * Take `±n` AuditLogs from the position of the cursor.
1182
+ */
1183
+ take?: number
1184
+ /**
1185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1186
+ *
1187
+ * Skip the first `n` AuditLogs.
1188
+ */
1189
+ skip?: number
1190
+ /**
1191
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1192
+ *
1193
+ * Filter by unique combinations of AuditLogs.
1194
+ */
1195
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1196
+ }
1197
+
1198
+ /**
1199
+ * AuditLog findFirstOrThrow
1200
+ */
1201
+ export type AuditLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1202
+ /**
1203
+ * Select specific fields to fetch from the AuditLog
1204
+ */
1205
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1206
+ /**
1207
+ * Omit specific fields from the AuditLog
1208
+ */
1209
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1210
+ /**
1211
+ * Choose, which related nodes to fetch as well
1212
+ */
1213
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1214
+ /**
1215
+ * Filter, which AuditLog to fetch.
1216
+ */
1217
+ where?: Prisma.AuditLogWhereInput
1218
+ /**
1219
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1220
+ *
1221
+ * Determine the order of AuditLogs to fetch.
1222
+ */
1223
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
1224
+ /**
1225
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1226
+ *
1227
+ * Sets the position for searching for AuditLogs.
1228
+ */
1229
+ cursor?: Prisma.AuditLogWhereUniqueInput
1230
+ /**
1231
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1232
+ *
1233
+ * Take `±n` AuditLogs from the position of the cursor.
1234
+ */
1235
+ take?: number
1236
+ /**
1237
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1238
+ *
1239
+ * Skip the first `n` AuditLogs.
1240
+ */
1241
+ skip?: number
1242
+ /**
1243
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1244
+ *
1245
+ * Filter by unique combinations of AuditLogs.
1246
+ */
1247
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1248
+ }
1249
+
1250
+ /**
1251
+ * AuditLog findMany
1252
+ */
1253
+ export type AuditLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * Select specific fields to fetch from the AuditLog
1256
+ */
1257
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1258
+ /**
1259
+ * Omit specific fields from the AuditLog
1260
+ */
1261
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1262
+ /**
1263
+ * Choose, which related nodes to fetch as well
1264
+ */
1265
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1266
+ /**
1267
+ * Filter, which AuditLogs to fetch.
1268
+ */
1269
+ where?: Prisma.AuditLogWhereInput
1270
+ /**
1271
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1272
+ *
1273
+ * Determine the order of AuditLogs to fetch.
1274
+ */
1275
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
1276
+ /**
1277
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1278
+ *
1279
+ * Sets the position for listing AuditLogs.
1280
+ */
1281
+ cursor?: Prisma.AuditLogWhereUniqueInput
1282
+ /**
1283
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1284
+ *
1285
+ * Take `±n` AuditLogs from the position of the cursor.
1286
+ */
1287
+ take?: number
1288
+ /**
1289
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1290
+ *
1291
+ * Skip the first `n` AuditLogs.
1292
+ */
1293
+ skip?: number
1294
+ /**
1295
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1296
+ *
1297
+ * Filter by unique combinations of AuditLogs.
1298
+ */
1299
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1300
+ }
1301
+
1302
+ /**
1303
+ * AuditLog create
1304
+ */
1305
+ export type AuditLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1306
+ /**
1307
+ * Select specific fields to fetch from the AuditLog
1308
+ */
1309
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1310
+ /**
1311
+ * Omit specific fields from the AuditLog
1312
+ */
1313
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1314
+ /**
1315
+ * Choose, which related nodes to fetch as well
1316
+ */
1317
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1318
+ /**
1319
+ * The data needed to create a AuditLog.
1320
+ */
1321
+ data: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
1322
+ }
1323
+
1324
+ /**
1325
+ * AuditLog createMany
1326
+ */
1327
+ export type AuditLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1328
+ /**
1329
+ * The data used to create many AuditLogs.
1330
+ */
1331
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
1332
+ skipDuplicates?: boolean
1333
+ }
1334
+
1335
+ /**
1336
+ * AuditLog createManyAndReturn
1337
+ */
1338
+ export type AuditLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1339
+ /**
1340
+ * Select specific fields to fetch from the AuditLog
1341
+ */
1342
+ select?: Prisma.AuditLogSelectCreateManyAndReturn<ExtArgs> | null
1343
+ /**
1344
+ * Omit specific fields from the AuditLog
1345
+ */
1346
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1347
+ /**
1348
+ * The data used to create many AuditLogs.
1349
+ */
1350
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
1351
+ skipDuplicates?: boolean
1352
+ /**
1353
+ * Choose, which related nodes to fetch as well
1354
+ */
1355
+ include?: Prisma.AuditLogIncludeCreateManyAndReturn<ExtArgs> | null
1356
+ }
1357
+
1358
+ /**
1359
+ * AuditLog update
1360
+ */
1361
+ export type AuditLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1362
+ /**
1363
+ * Select specific fields to fetch from the AuditLog
1364
+ */
1365
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1366
+ /**
1367
+ * Omit specific fields from the AuditLog
1368
+ */
1369
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1370
+ /**
1371
+ * Choose, which related nodes to fetch as well
1372
+ */
1373
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1374
+ /**
1375
+ * The data needed to update a AuditLog.
1376
+ */
1377
+ data: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
1378
+ /**
1379
+ * Choose, which AuditLog to update.
1380
+ */
1381
+ where: Prisma.AuditLogWhereUniqueInput
1382
+ }
1383
+
1384
+ /**
1385
+ * AuditLog updateMany
1386
+ */
1387
+ export type AuditLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1388
+ /**
1389
+ * The data used to update AuditLogs.
1390
+ */
1391
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
1392
+ /**
1393
+ * Filter which AuditLogs to update
1394
+ */
1395
+ where?: Prisma.AuditLogWhereInput
1396
+ /**
1397
+ * Limit how many AuditLogs to update.
1398
+ */
1399
+ limit?: number
1400
+ }
1401
+
1402
+ /**
1403
+ * AuditLog updateManyAndReturn
1404
+ */
1405
+ export type AuditLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1406
+ /**
1407
+ * Select specific fields to fetch from the AuditLog
1408
+ */
1409
+ select?: Prisma.AuditLogSelectUpdateManyAndReturn<ExtArgs> | null
1410
+ /**
1411
+ * Omit specific fields from the AuditLog
1412
+ */
1413
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1414
+ /**
1415
+ * The data used to update AuditLogs.
1416
+ */
1417
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
1418
+ /**
1419
+ * Filter which AuditLogs to update
1420
+ */
1421
+ where?: Prisma.AuditLogWhereInput
1422
+ /**
1423
+ * Limit how many AuditLogs to update.
1424
+ */
1425
+ limit?: number
1426
+ /**
1427
+ * Choose, which related nodes to fetch as well
1428
+ */
1429
+ include?: Prisma.AuditLogIncludeUpdateManyAndReturn<ExtArgs> | null
1430
+ }
1431
+
1432
+ /**
1433
+ * AuditLog upsert
1434
+ */
1435
+ export type AuditLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1436
+ /**
1437
+ * Select specific fields to fetch from the AuditLog
1438
+ */
1439
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1440
+ /**
1441
+ * Omit specific fields from the AuditLog
1442
+ */
1443
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1444
+ /**
1445
+ * Choose, which related nodes to fetch as well
1446
+ */
1447
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1448
+ /**
1449
+ * The filter to search for the AuditLog to update in case it exists.
1450
+ */
1451
+ where: Prisma.AuditLogWhereUniqueInput
1452
+ /**
1453
+ * In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
1454
+ */
1455
+ create: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
1456
+ /**
1457
+ * In case the AuditLog was found with the provided `where` argument, update it with this data.
1458
+ */
1459
+ update: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
1460
+ }
1461
+
1462
+ /**
1463
+ * AuditLog delete
1464
+ */
1465
+ export type AuditLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1466
+ /**
1467
+ * Select specific fields to fetch from the AuditLog
1468
+ */
1469
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1470
+ /**
1471
+ * Omit specific fields from the AuditLog
1472
+ */
1473
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1474
+ /**
1475
+ * Choose, which related nodes to fetch as well
1476
+ */
1477
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1478
+ /**
1479
+ * Filter which AuditLog to delete.
1480
+ */
1481
+ where: Prisma.AuditLogWhereUniqueInput
1482
+ }
1483
+
1484
+ /**
1485
+ * AuditLog deleteMany
1486
+ */
1487
+ export type AuditLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1488
+ /**
1489
+ * Filter which AuditLogs to delete
1490
+ */
1491
+ where?: Prisma.AuditLogWhereInput
1492
+ /**
1493
+ * Limit how many AuditLogs to delete.
1494
+ */
1495
+ limit?: number
1496
+ }
1497
+
1498
+ /**
1499
+ * AuditLog.workspace
1500
+ */
1501
+ export type AuditLog$workspaceArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1502
+ /**
1503
+ * Select specific fields to fetch from the Workspace
1504
+ */
1505
+ select?: Prisma.WorkspaceSelect<ExtArgs> | null
1506
+ /**
1507
+ * Omit specific fields from the Workspace
1508
+ */
1509
+ omit?: Prisma.WorkspaceOmit<ExtArgs> | null
1510
+ /**
1511
+ * Choose, which related nodes to fetch as well
1512
+ */
1513
+ include?: Prisma.WorkspaceInclude<ExtArgs> | null
1514
+ where?: Prisma.WorkspaceWhereInput
1515
+ }
1516
+
1517
+ /**
1518
+ * AuditLog without action
1519
+ */
1520
+ export type AuditLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1521
+ /**
1522
+ * Select specific fields to fetch from the AuditLog
1523
+ */
1524
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1525
+ /**
1526
+ * Omit specific fields from the AuditLog
1527
+ */
1528
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1529
+ /**
1530
+ * Choose, which related nodes to fetch as well
1531
+ */
1532
+ include?: Prisma.AuditLogInclude<ExtArgs> | null
1533
+ }