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