@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,1287 @@
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
+ metadata: string | null
35
+ ip: string | null
36
+ userAgent: string | null
37
+ createdAt: Date | null
38
+ }
39
+
40
+ export type AuditLogMaxAggregateOutputType = {
41
+ id: string | null
42
+ workspaceId: string | null
43
+ userId: string | null
44
+ action: string | null
45
+ resourceType: string | null
46
+ resourceId: string | null
47
+ metadata: string | null
48
+ ip: string | null
49
+ userAgent: string | null
50
+ createdAt: Date | null
51
+ }
52
+
53
+ export type AuditLogCountAggregateOutputType = {
54
+ id: number
55
+ workspaceId: number
56
+ userId: number
57
+ action: number
58
+ resourceType: number
59
+ resourceId: number
60
+ metadata: number
61
+ ip: number
62
+ userAgent: number
63
+ createdAt: number
64
+ _all: number
65
+ }
66
+
67
+
68
+ export type AuditLogMinAggregateInputType = {
69
+ id?: true
70
+ workspaceId?: true
71
+ userId?: true
72
+ action?: true
73
+ resourceType?: true
74
+ resourceId?: true
75
+ metadata?: true
76
+ ip?: true
77
+ userAgent?: true
78
+ createdAt?: true
79
+ }
80
+
81
+ export type AuditLogMaxAggregateInputType = {
82
+ id?: true
83
+ workspaceId?: true
84
+ userId?: true
85
+ action?: true
86
+ resourceType?: true
87
+ resourceId?: true
88
+ metadata?: true
89
+ ip?: true
90
+ userAgent?: true
91
+ createdAt?: true
92
+ }
93
+
94
+ export type AuditLogCountAggregateInputType = {
95
+ id?: true
96
+ workspaceId?: true
97
+ userId?: true
98
+ action?: true
99
+ resourceType?: true
100
+ resourceId?: true
101
+ metadata?: true
102
+ ip?: true
103
+ userAgent?: true
104
+ createdAt?: true
105
+ _all?: true
106
+ }
107
+
108
+ export type AuditLogAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ /**
110
+ * Filter which AuditLog to aggregate.
111
+ */
112
+ where?: Prisma.AuditLogWhereInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
115
+ *
116
+ * Determine the order of AuditLogs to fetch.
117
+ */
118
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
121
+ *
122
+ * Sets the start position
123
+ */
124
+ cursor?: Prisma.AuditLogWhereUniqueInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Take `±n` AuditLogs from the position of the cursor.
129
+ */
130
+ take?: number
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
133
+ *
134
+ * Skip the first `n` AuditLogs.
135
+ */
136
+ skip?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Count returned AuditLogs
141
+ **/
142
+ _count?: true | AuditLogCountAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to find the minimum value
147
+ **/
148
+ _min?: AuditLogMinAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to find the maximum value
153
+ **/
154
+ _max?: AuditLogMaxAggregateInputType
155
+ }
156
+
157
+ export type GetAuditLogAggregateType<T extends AuditLogAggregateArgs> = {
158
+ [P in keyof T & keyof AggregateAuditLog]: P extends '_count' | 'count'
159
+ ? T[P] extends true
160
+ ? number
161
+ : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
162
+ : Prisma.GetScalarType<T[P], AggregateAuditLog[P]>
163
+ }
164
+
165
+
166
+
167
+
168
+ export type AuditLogGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
169
+ where?: Prisma.AuditLogWhereInput
170
+ orderBy?: Prisma.AuditLogOrderByWithAggregationInput | Prisma.AuditLogOrderByWithAggregationInput[]
171
+ by: Prisma.AuditLogScalarFieldEnum[] | Prisma.AuditLogScalarFieldEnum
172
+ having?: Prisma.AuditLogScalarWhereWithAggregatesInput
173
+ take?: number
174
+ skip?: number
175
+ _count?: AuditLogCountAggregateInputType | true
176
+ _min?: AuditLogMinAggregateInputType
177
+ _max?: AuditLogMaxAggregateInputType
178
+ }
179
+
180
+ export type AuditLogGroupByOutputType = {
181
+ id: string
182
+ workspaceId: string | null
183
+ userId: string | null
184
+ action: string
185
+ resourceType: string
186
+ resourceId: string | null
187
+ metadata: string
188
+ ip: string | null
189
+ userAgent: string | null
190
+ createdAt: Date
191
+ _count: AuditLogCountAggregateOutputType | null
192
+ _min: AuditLogMinAggregateOutputType | null
193
+ _max: AuditLogMaxAggregateOutputType | null
194
+ }
195
+
196
+ export type GetAuditLogGroupByPayload<T extends AuditLogGroupByArgs> = Prisma.PrismaPromise<
197
+ Array<
198
+ Prisma.PickEnumerable<AuditLogGroupByOutputType, T['by']> &
199
+ {
200
+ [P in ((keyof T) & (keyof AuditLogGroupByOutputType))]: P extends '_count'
201
+ ? T[P] extends boolean
202
+ ? number
203
+ : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
204
+ : Prisma.GetScalarType<T[P], AuditLogGroupByOutputType[P]>
205
+ }
206
+ >
207
+ >
208
+
209
+
210
+
211
+ export type AuditLogWhereInput = {
212
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
213
+ OR?: Prisma.AuditLogWhereInput[]
214
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
215
+ id?: Prisma.StringFilter<"AuditLog"> | string
216
+ workspaceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
217
+ userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
218
+ action?: Prisma.StringFilter<"AuditLog"> | string
219
+ resourceType?: Prisma.StringFilter<"AuditLog"> | string
220
+ resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
221
+ metadata?: Prisma.StringFilter<"AuditLog"> | string
222
+ ip?: Prisma.StringNullableFilter<"AuditLog"> | string | null
223
+ userAgent?: Prisma.StringNullableFilter<"AuditLog"> | string | null
224
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
225
+ }
226
+
227
+ export type AuditLogOrderByWithRelationInput = {
228
+ id?: Prisma.SortOrder
229
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
230
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
231
+ action?: Prisma.SortOrder
232
+ resourceType?: Prisma.SortOrder
233
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
234
+ metadata?: Prisma.SortOrder
235
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
236
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
237
+ createdAt?: Prisma.SortOrder
238
+ }
239
+
240
+ export type AuditLogWhereUniqueInput = Prisma.AtLeast<{
241
+ id?: string
242
+ AND?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
243
+ OR?: Prisma.AuditLogWhereInput[]
244
+ NOT?: Prisma.AuditLogWhereInput | Prisma.AuditLogWhereInput[]
245
+ workspaceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
246
+ userId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
247
+ action?: Prisma.StringFilter<"AuditLog"> | string
248
+ resourceType?: Prisma.StringFilter<"AuditLog"> | string
249
+ resourceId?: Prisma.StringNullableFilter<"AuditLog"> | string | null
250
+ metadata?: Prisma.StringFilter<"AuditLog"> | string
251
+ ip?: Prisma.StringNullableFilter<"AuditLog"> | string | null
252
+ userAgent?: Prisma.StringNullableFilter<"AuditLog"> | string | null
253
+ createdAt?: Prisma.DateTimeFilter<"AuditLog"> | Date | string
254
+ }, "id">
255
+
256
+ export type AuditLogOrderByWithAggregationInput = {
257
+ id?: Prisma.SortOrder
258
+ workspaceId?: Prisma.SortOrderInput | Prisma.SortOrder
259
+ userId?: Prisma.SortOrderInput | Prisma.SortOrder
260
+ action?: Prisma.SortOrder
261
+ resourceType?: Prisma.SortOrder
262
+ resourceId?: Prisma.SortOrderInput | Prisma.SortOrder
263
+ metadata?: Prisma.SortOrder
264
+ ip?: Prisma.SortOrderInput | Prisma.SortOrder
265
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
266
+ createdAt?: Prisma.SortOrder
267
+ _count?: Prisma.AuditLogCountOrderByAggregateInput
268
+ _max?: Prisma.AuditLogMaxOrderByAggregateInput
269
+ _min?: Prisma.AuditLogMinOrderByAggregateInput
270
+ }
271
+
272
+ export type AuditLogScalarWhereWithAggregatesInput = {
273
+ AND?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
274
+ OR?: Prisma.AuditLogScalarWhereWithAggregatesInput[]
275
+ NOT?: Prisma.AuditLogScalarWhereWithAggregatesInput | Prisma.AuditLogScalarWhereWithAggregatesInput[]
276
+ id?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
277
+ workspaceId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
278
+ userId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
279
+ action?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
280
+ resourceType?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
281
+ resourceId?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
282
+ metadata?: Prisma.StringWithAggregatesFilter<"AuditLog"> | string
283
+ ip?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
284
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"AuditLog"> | string | null
285
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"AuditLog"> | Date | string
286
+ }
287
+
288
+ export type AuditLogCreateInput = {
289
+ id?: string
290
+ workspaceId?: string | null
291
+ userId?: string | null
292
+ action: string
293
+ resourceType: string
294
+ resourceId?: string | null
295
+ metadata?: string
296
+ ip?: string | null
297
+ userAgent?: string | null
298
+ createdAt?: Date | string
299
+ }
300
+
301
+ export type AuditLogUncheckedCreateInput = {
302
+ id?: string
303
+ workspaceId?: string | null
304
+ userId?: string | null
305
+ action: string
306
+ resourceType: string
307
+ resourceId?: string | null
308
+ metadata?: string
309
+ ip?: string | null
310
+ userAgent?: string | null
311
+ createdAt?: Date | string
312
+ }
313
+
314
+ export type AuditLogUpdateInput = {
315
+ id?: Prisma.StringFieldUpdateOperationsInput | string
316
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
317
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
318
+ action?: Prisma.StringFieldUpdateOperationsInput | string
319
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
320
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
321
+ metadata?: Prisma.StringFieldUpdateOperationsInput | string
322
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
323
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
324
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
325
+ }
326
+
327
+ export type AuditLogUncheckedUpdateInput = {
328
+ id?: Prisma.StringFieldUpdateOperationsInput | string
329
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
330
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
331
+ action?: Prisma.StringFieldUpdateOperationsInput | string
332
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
333
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
334
+ metadata?: Prisma.StringFieldUpdateOperationsInput | string
335
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
336
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
337
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
338
+ }
339
+
340
+ export type AuditLogCreateManyInput = {
341
+ id?: string
342
+ workspaceId?: string | null
343
+ userId?: string | null
344
+ action: string
345
+ resourceType: string
346
+ resourceId?: string | null
347
+ metadata?: string
348
+ ip?: string | null
349
+ userAgent?: string | null
350
+ createdAt?: Date | string
351
+ }
352
+
353
+ export type AuditLogUpdateManyMutationInput = {
354
+ id?: Prisma.StringFieldUpdateOperationsInput | string
355
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
356
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
357
+ action?: Prisma.StringFieldUpdateOperationsInput | string
358
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
359
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
360
+ metadata?: Prisma.StringFieldUpdateOperationsInput | string
361
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
362
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
363
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
364
+ }
365
+
366
+ export type AuditLogUncheckedUpdateManyInput = {
367
+ id?: Prisma.StringFieldUpdateOperationsInput | string
368
+ workspaceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
369
+ userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
370
+ action?: Prisma.StringFieldUpdateOperationsInput | string
371
+ resourceType?: Prisma.StringFieldUpdateOperationsInput | string
372
+ resourceId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ metadata?: Prisma.StringFieldUpdateOperationsInput | string
374
+ ip?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
375
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
377
+ }
378
+
379
+ export type AuditLogCountOrderByAggregateInput = {
380
+ id?: Prisma.SortOrder
381
+ workspaceId?: Prisma.SortOrder
382
+ userId?: Prisma.SortOrder
383
+ action?: Prisma.SortOrder
384
+ resourceType?: Prisma.SortOrder
385
+ resourceId?: Prisma.SortOrder
386
+ metadata?: Prisma.SortOrder
387
+ ip?: Prisma.SortOrder
388
+ userAgent?: Prisma.SortOrder
389
+ createdAt?: Prisma.SortOrder
390
+ }
391
+
392
+ export type AuditLogMaxOrderByAggregateInput = {
393
+ id?: Prisma.SortOrder
394
+ workspaceId?: Prisma.SortOrder
395
+ userId?: Prisma.SortOrder
396
+ action?: Prisma.SortOrder
397
+ resourceType?: Prisma.SortOrder
398
+ resourceId?: Prisma.SortOrder
399
+ metadata?: Prisma.SortOrder
400
+ ip?: Prisma.SortOrder
401
+ userAgent?: Prisma.SortOrder
402
+ createdAt?: Prisma.SortOrder
403
+ }
404
+
405
+ export type AuditLogMinOrderByAggregateInput = {
406
+ id?: Prisma.SortOrder
407
+ workspaceId?: Prisma.SortOrder
408
+ userId?: Prisma.SortOrder
409
+ action?: Prisma.SortOrder
410
+ resourceType?: Prisma.SortOrder
411
+ resourceId?: Prisma.SortOrder
412
+ metadata?: Prisma.SortOrder
413
+ ip?: Prisma.SortOrder
414
+ userAgent?: Prisma.SortOrder
415
+ createdAt?: Prisma.SortOrder
416
+ }
417
+
418
+
419
+
420
+ export type AuditLogSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
421
+ id?: boolean
422
+ workspaceId?: boolean
423
+ userId?: boolean
424
+ action?: boolean
425
+ resourceType?: boolean
426
+ resourceId?: boolean
427
+ metadata?: boolean
428
+ ip?: boolean
429
+ userAgent?: boolean
430
+ createdAt?: boolean
431
+ }, ExtArgs["result"]["auditLog"]>
432
+
433
+ export type AuditLogSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
434
+ id?: boolean
435
+ workspaceId?: boolean
436
+ userId?: boolean
437
+ action?: boolean
438
+ resourceType?: boolean
439
+ resourceId?: boolean
440
+ metadata?: boolean
441
+ ip?: boolean
442
+ userAgent?: boolean
443
+ createdAt?: boolean
444
+ }, ExtArgs["result"]["auditLog"]>
445
+
446
+ export type AuditLogSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
447
+ id?: boolean
448
+ workspaceId?: boolean
449
+ userId?: boolean
450
+ action?: boolean
451
+ resourceType?: boolean
452
+ resourceId?: boolean
453
+ metadata?: boolean
454
+ ip?: boolean
455
+ userAgent?: boolean
456
+ createdAt?: boolean
457
+ }, ExtArgs["result"]["auditLog"]>
458
+
459
+ export type AuditLogSelectScalar = {
460
+ id?: boolean
461
+ workspaceId?: boolean
462
+ userId?: boolean
463
+ action?: boolean
464
+ resourceType?: boolean
465
+ resourceId?: boolean
466
+ metadata?: boolean
467
+ ip?: boolean
468
+ userAgent?: boolean
469
+ createdAt?: boolean
470
+ }
471
+
472
+ 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"]>
473
+
474
+ export type $AuditLogPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
475
+ name: "AuditLog"
476
+ objects: {}
477
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
478
+ id: string
479
+ workspaceId: string | null
480
+ userId: string | null
481
+ action: string
482
+ resourceType: string
483
+ resourceId: string | null
484
+ metadata: string
485
+ ip: string | null
486
+ userAgent: string | null
487
+ createdAt: Date
488
+ }, ExtArgs["result"]["auditLog"]>
489
+ composites: {}
490
+ }
491
+
492
+ export type AuditLogGetPayload<S extends boolean | null | undefined | AuditLogDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AuditLogPayload, S>
493
+
494
+ export type AuditLogCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
495
+ Omit<AuditLogFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
496
+ select?: AuditLogCountAggregateInputType | true
497
+ }
498
+
499
+ export interface AuditLogDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
500
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AuditLog'], meta: { name: 'AuditLog' } }
501
+ /**
502
+ * Find zero or one AuditLog that matches the filter.
503
+ * @param {AuditLogFindUniqueArgs} args - Arguments to find a AuditLog
504
+ * @example
505
+ * // Get one AuditLog
506
+ * const auditLog = await prisma.auditLog.findUnique({
507
+ * where: {
508
+ * // ... provide filter here
509
+ * }
510
+ * })
511
+ */
512
+ 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>
513
+
514
+ /**
515
+ * Find one AuditLog that matches the filter or throw an error with `error.code='P2025'`
516
+ * if no matches were found.
517
+ * @param {AuditLogFindUniqueOrThrowArgs} args - Arguments to find a AuditLog
518
+ * @example
519
+ * // Get one AuditLog
520
+ * const auditLog = await prisma.auditLog.findUniqueOrThrow({
521
+ * where: {
522
+ * // ... provide filter here
523
+ * }
524
+ * })
525
+ */
526
+ 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>
527
+
528
+ /**
529
+ * Find the first AuditLog that matches the filter.
530
+ * Note, that providing `undefined` is treated as the value not being there.
531
+ * Read more here: https://pris.ly/d/null-undefined
532
+ * @param {AuditLogFindFirstArgs} args - Arguments to find a AuditLog
533
+ * @example
534
+ * // Get one AuditLog
535
+ * const auditLog = await prisma.auditLog.findFirst({
536
+ * where: {
537
+ * // ... provide filter here
538
+ * }
539
+ * })
540
+ */
541
+ 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>
542
+
543
+ /**
544
+ * Find the first AuditLog that matches the filter or
545
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
546
+ * Note, that providing `undefined` is treated as the value not being there.
547
+ * Read more here: https://pris.ly/d/null-undefined
548
+ * @param {AuditLogFindFirstOrThrowArgs} args - Arguments to find a AuditLog
549
+ * @example
550
+ * // Get one AuditLog
551
+ * const auditLog = await prisma.auditLog.findFirstOrThrow({
552
+ * where: {
553
+ * // ... provide filter here
554
+ * }
555
+ * })
556
+ */
557
+ 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>
558
+
559
+ /**
560
+ * Find zero or more AuditLogs that matches the filter.
561
+ * Note, that providing `undefined` is treated as the value not being there.
562
+ * Read more here: https://pris.ly/d/null-undefined
563
+ * @param {AuditLogFindManyArgs} args - Arguments to filter and select certain fields only.
564
+ * @example
565
+ * // Get all AuditLogs
566
+ * const auditLogs = await prisma.auditLog.findMany()
567
+ *
568
+ * // Get first 10 AuditLogs
569
+ * const auditLogs = await prisma.auditLog.findMany({ take: 10 })
570
+ *
571
+ * // Only select the `id`
572
+ * const auditLogWithIdOnly = await prisma.auditLog.findMany({ select: { id: true } })
573
+ *
574
+ */
575
+ findMany<T extends AuditLogFindManyArgs>(args?: Prisma.SelectSubset<T, AuditLogFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
576
+
577
+ /**
578
+ * Create a AuditLog.
579
+ * @param {AuditLogCreateArgs} args - Arguments to create a AuditLog.
580
+ * @example
581
+ * // Create one AuditLog
582
+ * const AuditLog = await prisma.auditLog.create({
583
+ * data: {
584
+ * // ... data to create a AuditLog
585
+ * }
586
+ * })
587
+ *
588
+ */
589
+ 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>
590
+
591
+ /**
592
+ * Create many AuditLogs.
593
+ * @param {AuditLogCreateManyArgs} args - Arguments to create many AuditLogs.
594
+ * @example
595
+ * // Create many AuditLogs
596
+ * const auditLog = await prisma.auditLog.createMany({
597
+ * data: [
598
+ * // ... provide data here
599
+ * ]
600
+ * })
601
+ *
602
+ */
603
+ createMany<T extends AuditLogCreateManyArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
604
+
605
+ /**
606
+ * Create many AuditLogs and returns the data saved in the database.
607
+ * @param {AuditLogCreateManyAndReturnArgs} args - Arguments to create many AuditLogs.
608
+ * @example
609
+ * // Create many AuditLogs
610
+ * const auditLog = await prisma.auditLog.createManyAndReturn({
611
+ * data: [
612
+ * // ... provide data here
613
+ * ]
614
+ * })
615
+ *
616
+ * // Create many AuditLogs and only return the `id`
617
+ * const auditLogWithIdOnly = await prisma.auditLog.createManyAndReturn({
618
+ * select: { id: true },
619
+ * data: [
620
+ * // ... provide data here
621
+ * ]
622
+ * })
623
+ * Note, that providing `undefined` is treated as the value not being there.
624
+ * Read more here: https://pris.ly/d/null-undefined
625
+ *
626
+ */
627
+ createManyAndReturn<T extends AuditLogCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AuditLogCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
628
+
629
+ /**
630
+ * Delete a AuditLog.
631
+ * @param {AuditLogDeleteArgs} args - Arguments to delete one AuditLog.
632
+ * @example
633
+ * // Delete one AuditLog
634
+ * const AuditLog = await prisma.auditLog.delete({
635
+ * where: {
636
+ * // ... filter to delete one AuditLog
637
+ * }
638
+ * })
639
+ *
640
+ */
641
+ 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>
642
+
643
+ /**
644
+ * Update one AuditLog.
645
+ * @param {AuditLogUpdateArgs} args - Arguments to update one AuditLog.
646
+ * @example
647
+ * // Update one AuditLog
648
+ * const auditLog = await prisma.auditLog.update({
649
+ * where: {
650
+ * // ... provide filter here
651
+ * },
652
+ * data: {
653
+ * // ... provide data here
654
+ * }
655
+ * })
656
+ *
657
+ */
658
+ 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>
659
+
660
+ /**
661
+ * Delete zero or more AuditLogs.
662
+ * @param {AuditLogDeleteManyArgs} args - Arguments to filter AuditLogs to delete.
663
+ * @example
664
+ * // Delete a few AuditLogs
665
+ * const { count } = await prisma.auditLog.deleteMany({
666
+ * where: {
667
+ * // ... provide filter here
668
+ * }
669
+ * })
670
+ *
671
+ */
672
+ deleteMany<T extends AuditLogDeleteManyArgs>(args?: Prisma.SelectSubset<T, AuditLogDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
673
+
674
+ /**
675
+ * Update zero or more AuditLogs.
676
+ * Note, that providing `undefined` is treated as the value not being there.
677
+ * Read more here: https://pris.ly/d/null-undefined
678
+ * @param {AuditLogUpdateManyArgs} args - Arguments to update one or more rows.
679
+ * @example
680
+ * // Update many AuditLogs
681
+ * const auditLog = await prisma.auditLog.updateMany({
682
+ * where: {
683
+ * // ... provide filter here
684
+ * },
685
+ * data: {
686
+ * // ... provide data here
687
+ * }
688
+ * })
689
+ *
690
+ */
691
+ updateMany<T extends AuditLogUpdateManyArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
692
+
693
+ /**
694
+ * Update zero or more AuditLogs and returns the data updated in the database.
695
+ * @param {AuditLogUpdateManyAndReturnArgs} args - Arguments to update many AuditLogs.
696
+ * @example
697
+ * // Update many AuditLogs
698
+ * const auditLog = await prisma.auditLog.updateManyAndReturn({
699
+ * where: {
700
+ * // ... provide filter here
701
+ * },
702
+ * data: [
703
+ * // ... provide data here
704
+ * ]
705
+ * })
706
+ *
707
+ * // Update zero or more AuditLogs and only return the `id`
708
+ * const auditLogWithIdOnly = await prisma.auditLog.updateManyAndReturn({
709
+ * select: { id: true },
710
+ * where: {
711
+ * // ... provide filter here
712
+ * },
713
+ * data: [
714
+ * // ... provide data here
715
+ * ]
716
+ * })
717
+ * Note, that providing `undefined` is treated as the value not being there.
718
+ * Read more here: https://pris.ly/d/null-undefined
719
+ *
720
+ */
721
+ updateManyAndReturn<T extends AuditLogUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AuditLogUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AuditLogPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
722
+
723
+ /**
724
+ * Create or update one AuditLog.
725
+ * @param {AuditLogUpsertArgs} args - Arguments to update or create a AuditLog.
726
+ * @example
727
+ * // Update or create a AuditLog
728
+ * const auditLog = await prisma.auditLog.upsert({
729
+ * create: {
730
+ * // ... data to create a AuditLog
731
+ * },
732
+ * update: {
733
+ * // ... in case it already exists, update
734
+ * },
735
+ * where: {
736
+ * // ... the filter for the AuditLog we want to update
737
+ * }
738
+ * })
739
+ */
740
+ 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>
741
+
742
+
743
+ /**
744
+ * Count the number of AuditLogs.
745
+ * Note, that providing `undefined` is treated as the value not being there.
746
+ * Read more here: https://pris.ly/d/null-undefined
747
+ * @param {AuditLogCountArgs} args - Arguments to filter AuditLogs to count.
748
+ * @example
749
+ * // Count the number of AuditLogs
750
+ * const count = await prisma.auditLog.count({
751
+ * where: {
752
+ * // ... the filter for the AuditLogs we want to count
753
+ * }
754
+ * })
755
+ **/
756
+ count<T extends AuditLogCountArgs>(
757
+ args?: Prisma.Subset<T, AuditLogCountArgs>,
758
+ ): Prisma.PrismaPromise<
759
+ T extends runtime.Types.Utils.Record<'select', any>
760
+ ? T['select'] extends true
761
+ ? number
762
+ : Prisma.GetScalarType<T['select'], AuditLogCountAggregateOutputType>
763
+ : number
764
+ >
765
+
766
+ /**
767
+ * Allows you to perform aggregations operations on a AuditLog.
768
+ * Note, that providing `undefined` is treated as the value not being there.
769
+ * Read more here: https://pris.ly/d/null-undefined
770
+ * @param {AuditLogAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
771
+ * @example
772
+ * // Ordered by age ascending
773
+ * // Where email contains prisma.io
774
+ * // Limited to the 10 users
775
+ * const aggregations = await prisma.user.aggregate({
776
+ * _avg: {
777
+ * age: true,
778
+ * },
779
+ * where: {
780
+ * email: {
781
+ * contains: "prisma.io",
782
+ * },
783
+ * },
784
+ * orderBy: {
785
+ * age: "asc",
786
+ * },
787
+ * take: 10,
788
+ * })
789
+ **/
790
+ aggregate<T extends AuditLogAggregateArgs>(args: Prisma.Subset<T, AuditLogAggregateArgs>): Prisma.PrismaPromise<GetAuditLogAggregateType<T>>
791
+
792
+ /**
793
+ * Group by AuditLog.
794
+ * Note, that providing `undefined` is treated as the value not being there.
795
+ * Read more here: https://pris.ly/d/null-undefined
796
+ * @param {AuditLogGroupByArgs} args - Group by arguments.
797
+ * @example
798
+ * // Group by city, order by createdAt, get count
799
+ * const result = await prisma.user.groupBy({
800
+ * by: ['city', 'createdAt'],
801
+ * orderBy: {
802
+ * createdAt: true
803
+ * },
804
+ * _count: {
805
+ * _all: true
806
+ * },
807
+ * })
808
+ *
809
+ **/
810
+ groupBy<
811
+ T extends AuditLogGroupByArgs,
812
+ HasSelectOrTake extends Prisma.Or<
813
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
814
+ Prisma.Extends<'take', Prisma.Keys<T>>
815
+ >,
816
+ OrderByArg extends Prisma.True extends HasSelectOrTake
817
+ ? { orderBy: AuditLogGroupByArgs['orderBy'] }
818
+ : { orderBy?: AuditLogGroupByArgs['orderBy'] },
819
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
820
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
821
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
822
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
823
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
824
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
825
+ InputErrors extends ByEmpty extends Prisma.True
826
+ ? `Error: "by" must not be empty.`
827
+ : HavingValid extends Prisma.False
828
+ ? {
829
+ [P in HavingFields]: P extends ByFields
830
+ ? never
831
+ : P extends string
832
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
833
+ : [
834
+ Error,
835
+ 'Field ',
836
+ P,
837
+ ` in "having" needs to be provided in "by"`,
838
+ ]
839
+ }[HavingFields]
840
+ : 'take' extends Prisma.Keys<T>
841
+ ? 'orderBy' extends Prisma.Keys<T>
842
+ ? ByValid extends Prisma.True
843
+ ? {}
844
+ : {
845
+ [P in OrderFields]: P extends ByFields
846
+ ? never
847
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
848
+ }[OrderFields]
849
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
850
+ : 'skip' extends Prisma.Keys<T>
851
+ ? 'orderBy' extends Prisma.Keys<T>
852
+ ? ByValid extends Prisma.True
853
+ ? {}
854
+ : {
855
+ [P in OrderFields]: P extends ByFields
856
+ ? never
857
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
858
+ }[OrderFields]
859
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
860
+ : ByValid extends Prisma.True
861
+ ? {}
862
+ : {
863
+ [P in OrderFields]: P extends ByFields
864
+ ? never
865
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
866
+ }[OrderFields]
867
+ >(args: Prisma.SubsetIntersection<T, AuditLogGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAuditLogGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
868
+ /**
869
+ * Fields of the AuditLog model
870
+ */
871
+ readonly fields: AuditLogFieldRefs;
872
+ }
873
+
874
+ /**
875
+ * The delegate class that acts as a "Promise-like" for AuditLog.
876
+ * Why is this prefixed with `Prisma__`?
877
+ * Because we want to prevent naming conflicts as mentioned in
878
+ * https://github.com/prisma/prisma-client-js/issues/707
879
+ */
880
+ export interface Prisma__AuditLogClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
881
+ readonly [Symbol.toStringTag]: "PrismaPromise"
882
+ /**
883
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
884
+ * @param onfulfilled The callback to execute when the Promise is resolved.
885
+ * @param onrejected The callback to execute when the Promise is rejected.
886
+ * @returns A Promise for the completion of which ever callback is executed.
887
+ */
888
+ 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>
889
+ /**
890
+ * Attaches a callback for only the rejection of the Promise.
891
+ * @param onrejected The callback to execute when the Promise is rejected.
892
+ * @returns A Promise for the completion of the callback.
893
+ */
894
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
895
+ /**
896
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
897
+ * resolved value cannot be modified from the callback.
898
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
899
+ * @returns A Promise for the completion of the callback.
900
+ */
901
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
902
+ }
903
+
904
+
905
+
906
+
907
+ /**
908
+ * Fields of the AuditLog model
909
+ */
910
+ export interface AuditLogFieldRefs {
911
+ readonly id: Prisma.FieldRef<"AuditLog", 'String'>
912
+ readonly workspaceId: Prisma.FieldRef<"AuditLog", 'String'>
913
+ readonly userId: Prisma.FieldRef<"AuditLog", 'String'>
914
+ readonly action: Prisma.FieldRef<"AuditLog", 'String'>
915
+ readonly resourceType: Prisma.FieldRef<"AuditLog", 'String'>
916
+ readonly resourceId: Prisma.FieldRef<"AuditLog", 'String'>
917
+ readonly metadata: Prisma.FieldRef<"AuditLog", 'String'>
918
+ readonly ip: Prisma.FieldRef<"AuditLog", 'String'>
919
+ readonly userAgent: Prisma.FieldRef<"AuditLog", 'String'>
920
+ readonly createdAt: Prisma.FieldRef<"AuditLog", 'DateTime'>
921
+ }
922
+
923
+
924
+ // Custom InputTypes
925
+ /**
926
+ * AuditLog findUnique
927
+ */
928
+ export type AuditLogFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
929
+ /**
930
+ * Select specific fields to fetch from the AuditLog
931
+ */
932
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
933
+ /**
934
+ * Omit specific fields from the AuditLog
935
+ */
936
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
937
+ /**
938
+ * Filter, which AuditLog to fetch.
939
+ */
940
+ where: Prisma.AuditLogWhereUniqueInput
941
+ }
942
+
943
+ /**
944
+ * AuditLog findUniqueOrThrow
945
+ */
946
+ export type AuditLogFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
947
+ /**
948
+ * Select specific fields to fetch from the AuditLog
949
+ */
950
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
951
+ /**
952
+ * Omit specific fields from the AuditLog
953
+ */
954
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
955
+ /**
956
+ * Filter, which AuditLog to fetch.
957
+ */
958
+ where: Prisma.AuditLogWhereUniqueInput
959
+ }
960
+
961
+ /**
962
+ * AuditLog findFirst
963
+ */
964
+ export type AuditLogFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the AuditLog
967
+ */
968
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
969
+ /**
970
+ * Omit specific fields from the AuditLog
971
+ */
972
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
973
+ /**
974
+ * Filter, which AuditLog to fetch.
975
+ */
976
+ where?: Prisma.AuditLogWhereInput
977
+ /**
978
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
979
+ *
980
+ * Determine the order of AuditLogs to fetch.
981
+ */
982
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
983
+ /**
984
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
985
+ *
986
+ * Sets the position for searching for AuditLogs.
987
+ */
988
+ cursor?: Prisma.AuditLogWhereUniqueInput
989
+ /**
990
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
991
+ *
992
+ * Take `±n` AuditLogs from the position of the cursor.
993
+ */
994
+ take?: number
995
+ /**
996
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
997
+ *
998
+ * Skip the first `n` AuditLogs.
999
+ */
1000
+ skip?: number
1001
+ /**
1002
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1003
+ *
1004
+ * Filter by unique combinations of AuditLogs.
1005
+ */
1006
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1007
+ }
1008
+
1009
+ /**
1010
+ * AuditLog findFirstOrThrow
1011
+ */
1012
+ export type AuditLogFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1013
+ /**
1014
+ * Select specific fields to fetch from the AuditLog
1015
+ */
1016
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1017
+ /**
1018
+ * Omit specific fields from the AuditLog
1019
+ */
1020
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1021
+ /**
1022
+ * Filter, which AuditLog to fetch.
1023
+ */
1024
+ where?: Prisma.AuditLogWhereInput
1025
+ /**
1026
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1027
+ *
1028
+ * Determine the order of AuditLogs to fetch.
1029
+ */
1030
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
1031
+ /**
1032
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1033
+ *
1034
+ * Sets the position for searching for AuditLogs.
1035
+ */
1036
+ cursor?: Prisma.AuditLogWhereUniqueInput
1037
+ /**
1038
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1039
+ *
1040
+ * Take `±n` AuditLogs from the position of the cursor.
1041
+ */
1042
+ take?: number
1043
+ /**
1044
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1045
+ *
1046
+ * Skip the first `n` AuditLogs.
1047
+ */
1048
+ skip?: number
1049
+ /**
1050
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1051
+ *
1052
+ * Filter by unique combinations of AuditLogs.
1053
+ */
1054
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1055
+ }
1056
+
1057
+ /**
1058
+ * AuditLog findMany
1059
+ */
1060
+ export type AuditLogFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1061
+ /**
1062
+ * Select specific fields to fetch from the AuditLog
1063
+ */
1064
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1065
+ /**
1066
+ * Omit specific fields from the AuditLog
1067
+ */
1068
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1069
+ /**
1070
+ * Filter, which AuditLogs to fetch.
1071
+ */
1072
+ where?: Prisma.AuditLogWhereInput
1073
+ /**
1074
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1075
+ *
1076
+ * Determine the order of AuditLogs to fetch.
1077
+ */
1078
+ orderBy?: Prisma.AuditLogOrderByWithRelationInput | Prisma.AuditLogOrderByWithRelationInput[]
1079
+ /**
1080
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1081
+ *
1082
+ * Sets the position for listing AuditLogs.
1083
+ */
1084
+ cursor?: Prisma.AuditLogWhereUniqueInput
1085
+ /**
1086
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1087
+ *
1088
+ * Take `±n` AuditLogs from the position of the cursor.
1089
+ */
1090
+ take?: number
1091
+ /**
1092
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1093
+ *
1094
+ * Skip the first `n` AuditLogs.
1095
+ */
1096
+ skip?: number
1097
+ /**
1098
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1099
+ *
1100
+ * Filter by unique combinations of AuditLogs.
1101
+ */
1102
+ distinct?: Prisma.AuditLogScalarFieldEnum | Prisma.AuditLogScalarFieldEnum[]
1103
+ }
1104
+
1105
+ /**
1106
+ * AuditLog create
1107
+ */
1108
+ export type AuditLogCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1109
+ /**
1110
+ * Select specific fields to fetch from the AuditLog
1111
+ */
1112
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1113
+ /**
1114
+ * Omit specific fields from the AuditLog
1115
+ */
1116
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1117
+ /**
1118
+ * The data needed to create a AuditLog.
1119
+ */
1120
+ data: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
1121
+ }
1122
+
1123
+ /**
1124
+ * AuditLog createMany
1125
+ */
1126
+ export type AuditLogCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1127
+ /**
1128
+ * The data used to create many AuditLogs.
1129
+ */
1130
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
1131
+ }
1132
+
1133
+ /**
1134
+ * AuditLog createManyAndReturn
1135
+ */
1136
+ export type AuditLogCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1137
+ /**
1138
+ * Select specific fields to fetch from the AuditLog
1139
+ */
1140
+ select?: Prisma.AuditLogSelectCreateManyAndReturn<ExtArgs> | null
1141
+ /**
1142
+ * Omit specific fields from the AuditLog
1143
+ */
1144
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1145
+ /**
1146
+ * The data used to create many AuditLogs.
1147
+ */
1148
+ data: Prisma.AuditLogCreateManyInput | Prisma.AuditLogCreateManyInput[]
1149
+ }
1150
+
1151
+ /**
1152
+ * AuditLog update
1153
+ */
1154
+ export type AuditLogUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1155
+ /**
1156
+ * Select specific fields to fetch from the AuditLog
1157
+ */
1158
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1159
+ /**
1160
+ * Omit specific fields from the AuditLog
1161
+ */
1162
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1163
+ /**
1164
+ * The data needed to update a AuditLog.
1165
+ */
1166
+ data: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
1167
+ /**
1168
+ * Choose, which AuditLog to update.
1169
+ */
1170
+ where: Prisma.AuditLogWhereUniqueInput
1171
+ }
1172
+
1173
+ /**
1174
+ * AuditLog updateMany
1175
+ */
1176
+ export type AuditLogUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1177
+ /**
1178
+ * The data used to update AuditLogs.
1179
+ */
1180
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
1181
+ /**
1182
+ * Filter which AuditLogs to update
1183
+ */
1184
+ where?: Prisma.AuditLogWhereInput
1185
+ /**
1186
+ * Limit how many AuditLogs to update.
1187
+ */
1188
+ limit?: number
1189
+ }
1190
+
1191
+ /**
1192
+ * AuditLog updateManyAndReturn
1193
+ */
1194
+ export type AuditLogUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1195
+ /**
1196
+ * Select specific fields to fetch from the AuditLog
1197
+ */
1198
+ select?: Prisma.AuditLogSelectUpdateManyAndReturn<ExtArgs> | null
1199
+ /**
1200
+ * Omit specific fields from the AuditLog
1201
+ */
1202
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1203
+ /**
1204
+ * The data used to update AuditLogs.
1205
+ */
1206
+ data: Prisma.XOR<Prisma.AuditLogUpdateManyMutationInput, Prisma.AuditLogUncheckedUpdateManyInput>
1207
+ /**
1208
+ * Filter which AuditLogs to update
1209
+ */
1210
+ where?: Prisma.AuditLogWhereInput
1211
+ /**
1212
+ * Limit how many AuditLogs to update.
1213
+ */
1214
+ limit?: number
1215
+ }
1216
+
1217
+ /**
1218
+ * AuditLog upsert
1219
+ */
1220
+ export type AuditLogUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Select specific fields to fetch from the AuditLog
1223
+ */
1224
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1225
+ /**
1226
+ * Omit specific fields from the AuditLog
1227
+ */
1228
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1229
+ /**
1230
+ * The filter to search for the AuditLog to update in case it exists.
1231
+ */
1232
+ where: Prisma.AuditLogWhereUniqueInput
1233
+ /**
1234
+ * In case the AuditLog found by the `where` argument doesn't exist, create a new AuditLog with this data.
1235
+ */
1236
+ create: Prisma.XOR<Prisma.AuditLogCreateInput, Prisma.AuditLogUncheckedCreateInput>
1237
+ /**
1238
+ * In case the AuditLog was found with the provided `where` argument, update it with this data.
1239
+ */
1240
+ update: Prisma.XOR<Prisma.AuditLogUpdateInput, Prisma.AuditLogUncheckedUpdateInput>
1241
+ }
1242
+
1243
+ /**
1244
+ * AuditLog delete
1245
+ */
1246
+ export type AuditLogDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
+ /**
1248
+ * Select specific fields to fetch from the AuditLog
1249
+ */
1250
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1251
+ /**
1252
+ * Omit specific fields from the AuditLog
1253
+ */
1254
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1255
+ /**
1256
+ * Filter which AuditLog to delete.
1257
+ */
1258
+ where: Prisma.AuditLogWhereUniqueInput
1259
+ }
1260
+
1261
+ /**
1262
+ * AuditLog deleteMany
1263
+ */
1264
+ export type AuditLogDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1265
+ /**
1266
+ * Filter which AuditLogs to delete
1267
+ */
1268
+ where?: Prisma.AuditLogWhereInput
1269
+ /**
1270
+ * Limit how many AuditLogs to delete.
1271
+ */
1272
+ limit?: number
1273
+ }
1274
+
1275
+ /**
1276
+ * AuditLog without action
1277
+ */
1278
+ export type AuditLogDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1279
+ /**
1280
+ * Select specific fields to fetch from the AuditLog
1281
+ */
1282
+ select?: Prisma.AuditLogSelect<ExtArgs> | null
1283
+ /**
1284
+ * Omit specific fields from the AuditLog
1285
+ */
1286
+ omit?: Prisma.AuditLogOmit<ExtArgs> | null
1287
+ }