@allbluecn/database 0.3.14 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (190) hide show
  1. package/desktop-init.ts +128 -0
  2. package/generated/browser.ts +494 -0
  3. package/generated/client.ts +518 -0
  4. package/generated/commonInputTypes.ts +1056 -0
  5. package/generated/enums.ts +93 -0
  6. package/generated/internal/class.ts +1144 -0
  7. package/generated/internal/prismaNamespace.ts +9603 -0
  8. package/generated/internal/prismaNamespaceBrowser.ts +1695 -0
  9. package/generated/models/Account.ts +1648 -0
  10. package/generated/models/AgentConversation.ts +1651 -0
  11. package/generated/models/AgentMessage.ts +1409 -0
  12. package/generated/models/AiProvider.ts +1607 -0
  13. package/generated/models/AiProviderConfig.ts +1514 -0
  14. package/generated/models/AiUsageLog.ts +1863 -0
  15. package/generated/models/AnyHubApp.ts +1911 -0
  16. package/generated/models/AnyHubMarketApp.ts +2008 -0
  17. package/generated/models/AnyHubPermission.ts +1422 -0
  18. package/generated/models/AnyHubRecommendation.ts +1870 -0
  19. package/generated/models/AnyHubRecommender.ts +1471 -0
  20. package/generated/models/Artboard.ts +1811 -0
  21. package/generated/models/ArtboardExport.ts +1548 -0
  22. package/generated/models/ArticleFavorite.ts +1352 -0
  23. package/generated/models/AuditLog.ts +1533 -0
  24. package/generated/models/Block.ts +1650 -0
  25. package/generated/models/BlockComponent.ts +1734 -0
  26. package/generated/models/BlockInstance.ts +2043 -0
  27. package/generated/models/BookmarkCategory.ts +1670 -0
  28. package/generated/models/ChatInterrupt.ts +1699 -0
  29. package/generated/models/ChatMessage.ts +1438 -0
  30. package/generated/models/ChatRun.ts +1632 -0
  31. package/generated/models/ChatThread.ts +2133 -0
  32. package/generated/models/Comment.ts +2206 -0
  33. package/generated/models/CommentIgnore.ts +1430 -0
  34. package/generated/models/CommentReaction.ts +1472 -0
  35. package/generated/models/ComplianceExport.ts +1345 -0
  36. package/generated/models/Component.ts +2345 -0
  37. package/generated/models/ComponentInstance.ts +2102 -0
  38. package/generated/models/ComponentTag.ts +1281 -0
  39. package/generated/models/CustomRole.ts +1560 -0
  40. package/generated/models/DesignProject.ts +1643 -0
  41. package/generated/models/DictionaryTerm.ts +1642 -0
  42. package/generated/models/GenerationRun.ts +1543 -0
  43. package/generated/models/IndustryCompliance.ts +1797 -0
  44. package/generated/models/InvitationCode.ts +1417 -0
  45. package/generated/models/InvitationUse.ts +1424 -0
  46. package/generated/models/Invoice.ts +1710 -0
  47. package/generated/models/KnowledgeBase.ts +1671 -0
  48. package/generated/models/KnowledgeDocument.ts +2458 -0
  49. package/generated/models/KnowledgeShareRecord.ts +1352 -0
  50. package/generated/models/Label.ts +1482 -0
  51. package/generated/models/LegalRegulation.ts +1873 -0
  52. package/generated/models/LicenseActivation.ts +1415 -0
  53. package/generated/models/LicenseKey.ts +1884 -0
  54. package/generated/models/LoginLog.ts +1450 -0
  55. package/generated/models/MonitoringErrorReport.ts +1299 -0
  56. package/generated/models/MonitoringHealthSnapshot.ts +1249 -0
  57. package/generated/models/MonitoringMetricsSnapshot.ts +1369 -0
  58. package/generated/models/MonitoringRequestLog.ts +1283 -0
  59. package/generated/models/PRD.ts +2805 -0
  60. package/generated/models/PRDPage.ts +2402 -0
  61. package/generated/models/PRDTag.ts +1430 -0
  62. package/generated/models/PRDVersion.ts +2121 -0
  63. package/generated/models/PageVersion.ts +1523 -0
  64. package/generated/models/PasswordResetToken.ts +1380 -0
  65. package/generated/models/Plan.ts +2069 -0
  66. package/generated/models/Project.ts +2148 -0
  67. package/generated/models/ProjectActivity.ts +1582 -0
  68. package/generated/models/ProjectMember.ts +1512 -0
  69. package/generated/models/ProviderEvent.ts +1227 -0
  70. package/generated/models/Reference.ts +1177 -0
  71. package/generated/models/Review.ts +1912 -0
  72. package/generated/models/ReviewComment.ts +1904 -0
  73. package/generated/models/RoleAssignment.ts +1430 -0
  74. package/generated/models/SequenceCounter.ts +1137 -0
  75. package/generated/models/Share.ts +1681 -0
  76. package/generated/models/ShareVersion.ts +1389 -0
  77. package/generated/models/SsoMapping.ts +1512 -0
  78. package/generated/models/SsoProvider.ts +1639 -0
  79. package/generated/models/Story.ts +5234 -0
  80. package/generated/models/StoryActivity.ts +1664 -0
  81. package/generated/models/StoryAttachment.ts +1467 -0
  82. package/generated/models/StoryComment.ts +1992 -0
  83. package/generated/models/StoryDependency.ts +1517 -0
  84. package/generated/models/StoryDocLink.ts +1430 -0
  85. package/generated/models/StoryFilterView.ts +1587 -0
  86. package/generated/models/StoryLabel.ts +1349 -0
  87. package/generated/models/StoryLink.ts +1415 -0
  88. package/generated/models/StoryPrdLink.ts +1430 -0
  89. package/generated/models/StoryReaction.ts +1472 -0
  90. package/generated/models/Subscription.ts +2147 -0
  91. package/generated/models/SystemSetting.ts +1217 -0
  92. package/generated/models/Tag.ts +1655 -0
  93. package/generated/models/TeamInvitation.ts +1526 -0
  94. package/generated/models/TeamMembership.ts +1436 -0
  95. package/generated/models/Template.ts +1391 -0
  96. package/generated/models/TemplateBlock.ts +1664 -0
  97. package/generated/models/ThirdPartyDependency.ts +1473 -0
  98. package/generated/models/UsageRecord.ts +1505 -0
  99. package/generated/models/User.ts +20998 -0
  100. package/generated/models/UserAgent.ts +1900 -0
  101. package/generated/models/UserSkill.ts +1456 -0
  102. package/generated/models/WebsiteBookmark.ts +2219 -0
  103. package/generated/models/Workspace.ts +2279 -0
  104. package/generated/models.ts +106 -0
  105. package/generated-sqlite/browser.ts +399 -0
  106. package/generated-sqlite/client.ts +423 -0
  107. package/generated-sqlite/commonInputTypes.ts +608 -0
  108. package/generated-sqlite/enums.ts +15 -0
  109. package/generated-sqlite/internal/class.ts +954 -0
  110. package/generated-sqlite/internal/prismaNamespace.ts +7716 -0
  111. package/generated-sqlite/internal/prismaNamespaceBrowser.ts +1415 -0
  112. package/generated-sqlite/models/AgentConversation.ts +1647 -0
  113. package/generated-sqlite/models/AgentMessage.ts +1406 -0
  114. package/generated-sqlite/models/AiProvider.ts +1605 -0
  115. package/generated-sqlite/models/AiProviderConfig.ts +1511 -0
  116. package/generated-sqlite/models/AiUsageLog.ts +1845 -0
  117. package/generated-sqlite/models/AnyHubApp.ts +1908 -0
  118. package/generated-sqlite/models/AnyHubMarketApp.ts +1997 -0
  119. package/generated-sqlite/models/AnyHubPermission.ts +1419 -0
  120. package/generated-sqlite/models/AnyHubRecommendation.ts +1867 -0
  121. package/generated-sqlite/models/AnyHubRecommender.ts +1467 -0
  122. package/generated-sqlite/models/Artboard.ts +1808 -0
  123. package/generated-sqlite/models/ArtboardExport.ts +1545 -0
  124. package/generated-sqlite/models/ArticleFavorite.ts +1349 -0
  125. package/generated-sqlite/models/AuditLog.ts +1287 -0
  126. package/generated-sqlite/models/Block.ts +1648 -0
  127. package/generated-sqlite/models/BlockComponent.ts +1730 -0
  128. package/generated-sqlite/models/BlockInstance.ts +2039 -0
  129. package/generated-sqlite/models/BookmarkCategory.ts +1667 -0
  130. package/generated-sqlite/models/ChatInterrupt.ts +1695 -0
  131. package/generated-sqlite/models/ChatMessage.ts +1435 -0
  132. package/generated-sqlite/models/ChatRun.ts +1629 -0
  133. package/generated-sqlite/models/ChatThread.ts +2129 -0
  134. package/generated-sqlite/models/Comment.ts +2201 -0
  135. package/generated-sqlite/models/CommentIgnore.ts +1426 -0
  136. package/generated-sqlite/models/ComplianceExport.ts +1343 -0
  137. package/generated-sqlite/models/Component.ts +2326 -0
  138. package/generated-sqlite/models/ComponentInstance.ts +2097 -0
  139. package/generated-sqlite/models/ComponentTag.ts +1278 -0
  140. package/generated-sqlite/models/CustomRole.ts +1209 -0
  141. package/generated-sqlite/models/DesignProject.ts +1640 -0
  142. package/generated-sqlite/models/DictionaryTerm.ts +1639 -0
  143. package/generated-sqlite/models/GenerationRun.ts +1540 -0
  144. package/generated-sqlite/models/IndustryCompliance.ts +1794 -0
  145. package/generated-sqlite/models/InvitationCode.ts +1415 -0
  146. package/generated-sqlite/models/InvitationUse.ts +1420 -0
  147. package/generated-sqlite/models/Invoice.ts +1707 -0
  148. package/generated-sqlite/models/KnowledgeBase.ts +1668 -0
  149. package/generated-sqlite/models/KnowledgeDocument.ts +2282 -0
  150. package/generated-sqlite/models/KnowledgeShareRecord.ts +1349 -0
  151. package/generated-sqlite/models/LegalRegulation.ts +1870 -0
  152. package/generated-sqlite/models/LicenseActivation.ts +1203 -0
  153. package/generated-sqlite/models/LicenseKey.ts +1443 -0
  154. package/generated-sqlite/models/LoginLog.ts +1447 -0
  155. package/generated-sqlite/models/PRD.ts +2616 -0
  156. package/generated-sqlite/models/PRDPage.ts +2398 -0
  157. package/generated-sqlite/models/PRDTag.ts +1426 -0
  158. package/generated-sqlite/models/PRDVersion.ts +2117 -0
  159. package/generated-sqlite/models/PageVersion.ts +1528 -0
  160. package/generated-sqlite/models/PasswordResetToken.ts +1377 -0
  161. package/generated-sqlite/models/Plan.ts +2060 -0
  162. package/generated-sqlite/models/Project.ts +1994 -0
  163. package/generated-sqlite/models/ProjectActivity.ts +1578 -0
  164. package/generated-sqlite/models/ProjectMember.ts +1508 -0
  165. package/generated-sqlite/models/ProviderEvent.ts +1225 -0
  166. package/generated-sqlite/models/Reference.ts +1175 -0
  167. package/generated-sqlite/models/Review.ts +1903 -0
  168. package/generated-sqlite/models/ReviewComment.ts +1899 -0
  169. package/generated-sqlite/models/RoleAssignment.ts +1125 -0
  170. package/generated-sqlite/models/Share.ts +1674 -0
  171. package/generated-sqlite/models/ShareVersion.ts +1385 -0
  172. package/generated-sqlite/models/SsoMapping.ts +1181 -0
  173. package/generated-sqlite/models/SsoProvider.ts +1266 -0
  174. package/generated-sqlite/models/Subscription.ts +2137 -0
  175. package/generated-sqlite/models/SystemSetting.ts +1215 -0
  176. package/generated-sqlite/models/Tag.ts +1652 -0
  177. package/generated-sqlite/models/TeamInvitation.ts +1523 -0
  178. package/generated-sqlite/models/TeamMembership.ts +1433 -0
  179. package/generated-sqlite/models/Template.ts +1389 -0
  180. package/generated-sqlite/models/TemplateBlock.ts +1660 -0
  181. package/generated-sqlite/models/ThirdPartyDependency.ts +1471 -0
  182. package/generated-sqlite/models/UsageRecord.ts +1498 -0
  183. package/generated-sqlite/models/User.ts +13558 -0
  184. package/generated-sqlite/models/UserAgent.ts +1897 -0
  185. package/generated-sqlite/models/UserSkill.ts +1453 -0
  186. package/generated-sqlite/models/WebsiteBookmark.ts +2215 -0
  187. package/generated-sqlite/models/Workspace.ts +1824 -0
  188. package/generated-sqlite/models.ts +87 -0
  189. package/package.json +7 -3
  190. package/LICENSE +0 -661
@@ -0,0 +1,1873 @@
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
+ skipDuplicates?: boolean
758
+ }
759
+
760
+ export type LegalRegulationUpsertWithWhereUniqueWithoutUserInput = {
761
+ where: Prisma.LegalRegulationWhereUniqueInput
762
+ update: Prisma.XOR<Prisma.LegalRegulationUpdateWithoutUserInput, Prisma.LegalRegulationUncheckedUpdateWithoutUserInput>
763
+ create: Prisma.XOR<Prisma.LegalRegulationCreateWithoutUserInput, Prisma.LegalRegulationUncheckedCreateWithoutUserInput>
764
+ }
765
+
766
+ export type LegalRegulationUpdateWithWhereUniqueWithoutUserInput = {
767
+ where: Prisma.LegalRegulationWhereUniqueInput
768
+ data: Prisma.XOR<Prisma.LegalRegulationUpdateWithoutUserInput, Prisma.LegalRegulationUncheckedUpdateWithoutUserInput>
769
+ }
770
+
771
+ export type LegalRegulationUpdateManyWithWhereWithoutUserInput = {
772
+ where: Prisma.LegalRegulationScalarWhereInput
773
+ data: Prisma.XOR<Prisma.LegalRegulationUpdateManyMutationInput, Prisma.LegalRegulationUncheckedUpdateManyWithoutUserInput>
774
+ }
775
+
776
+ export type LegalRegulationScalarWhereInput = {
777
+ AND?: Prisma.LegalRegulationScalarWhereInput | Prisma.LegalRegulationScalarWhereInput[]
778
+ OR?: Prisma.LegalRegulationScalarWhereInput[]
779
+ NOT?: Prisma.LegalRegulationScalarWhereInput | Prisma.LegalRegulationScalarWhereInput[]
780
+ id?: Prisma.StringFilter<"LegalRegulation"> | string
781
+ canonicalId?: Prisma.StringFilter<"LegalRegulation"> | string
782
+ title?: Prisma.StringFilter<"LegalRegulation"> | string
783
+ jurisdiction?: Prisma.StringFilter<"LegalRegulation"> | string
784
+ region?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
785
+ country?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
786
+ category?: Prisma.StringFilter<"LegalRegulation"> | string
787
+ issuingAuthority?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
788
+ effectiveDate?: Prisma.DateTimeNullableFilter<"LegalRegulation"> | Date | string | null
789
+ summary?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
790
+ content?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
791
+ sourceUrl?: Prisma.StringNullableFilter<"LegalRegulation"> | string | null
792
+ likeCount?: Prisma.IntFilter<"LegalRegulation"> | number
793
+ tags?: Prisma.JsonFilter<"LegalRegulation">
794
+ visibility?: Prisma.StringFilter<"LegalRegulation"> | string
795
+ userId?: Prisma.StringFilter<"LegalRegulation"> | string
796
+ isDeleted?: Prisma.BoolFilter<"LegalRegulation"> | boolean
797
+ createdAt?: Prisma.DateTimeFilter<"LegalRegulation"> | Date | string
798
+ updatedAt?: Prisma.DateTimeFilter<"LegalRegulation"> | Date | string
799
+ }
800
+
801
+ export type LegalRegulationCreateManyUserInput = {
802
+ id?: string
803
+ canonicalId: string
804
+ title: string
805
+ jurisdiction: string
806
+ region?: string | null
807
+ country?: string | null
808
+ category: string
809
+ issuingAuthority?: string | null
810
+ effectiveDate?: Date | string | null
811
+ summary?: string | null
812
+ content?: string | null
813
+ sourceUrl?: string | null
814
+ likeCount?: number
815
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
816
+ visibility?: string
817
+ isDeleted?: boolean
818
+ createdAt?: Date | string
819
+ updatedAt?: Date | string
820
+ }
821
+
822
+ export type LegalRegulationUpdateWithoutUserInput = {
823
+ id?: Prisma.StringFieldUpdateOperationsInput | string
824
+ canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
825
+ title?: Prisma.StringFieldUpdateOperationsInput | string
826
+ jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
827
+ region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
828
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
829
+ category?: Prisma.StringFieldUpdateOperationsInput | string
830
+ issuingAuthority?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
831
+ effectiveDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
832
+ summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
833
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
834
+ sourceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
835
+ likeCount?: Prisma.IntFieldUpdateOperationsInput | number
836
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
837
+ visibility?: Prisma.StringFieldUpdateOperationsInput | string
838
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
839
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
840
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
841
+ }
842
+
843
+ export type LegalRegulationUncheckedUpdateWithoutUserInput = {
844
+ id?: Prisma.StringFieldUpdateOperationsInput | string
845
+ canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
846
+ title?: Prisma.StringFieldUpdateOperationsInput | string
847
+ jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
848
+ region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
849
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
850
+ category?: Prisma.StringFieldUpdateOperationsInput | string
851
+ issuingAuthority?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
852
+ effectiveDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
853
+ summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
854
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
855
+ sourceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
856
+ likeCount?: Prisma.IntFieldUpdateOperationsInput | number
857
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
858
+ visibility?: Prisma.StringFieldUpdateOperationsInput | string
859
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
860
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
861
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
862
+ }
863
+
864
+ export type LegalRegulationUncheckedUpdateManyWithoutUserInput = {
865
+ id?: Prisma.StringFieldUpdateOperationsInput | string
866
+ canonicalId?: Prisma.StringFieldUpdateOperationsInput | string
867
+ title?: Prisma.StringFieldUpdateOperationsInput | string
868
+ jurisdiction?: Prisma.StringFieldUpdateOperationsInput | string
869
+ region?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
870
+ country?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
871
+ category?: Prisma.StringFieldUpdateOperationsInput | string
872
+ issuingAuthority?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
873
+ effectiveDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
874
+ summary?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
875
+ content?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
876
+ sourceUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
877
+ likeCount?: Prisma.IntFieldUpdateOperationsInput | number
878
+ tags?: Prisma.JsonNullValueInput | runtime.InputJsonValue
879
+ visibility?: Prisma.StringFieldUpdateOperationsInput | string
880
+ isDeleted?: Prisma.BoolFieldUpdateOperationsInput | boolean
881
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
882
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
883
+ }
884
+
885
+
886
+
887
+ export type LegalRegulationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
888
+ id?: boolean
889
+ canonicalId?: boolean
890
+ title?: boolean
891
+ jurisdiction?: boolean
892
+ region?: boolean
893
+ country?: boolean
894
+ category?: boolean
895
+ issuingAuthority?: boolean
896
+ effectiveDate?: boolean
897
+ summary?: boolean
898
+ content?: boolean
899
+ sourceUrl?: boolean
900
+ likeCount?: boolean
901
+ tags?: boolean
902
+ visibility?: boolean
903
+ userId?: boolean
904
+ isDeleted?: boolean
905
+ createdAt?: boolean
906
+ updatedAt?: boolean
907
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
908
+ }, ExtArgs["result"]["legalRegulation"]>
909
+
910
+ export type LegalRegulationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
911
+ id?: boolean
912
+ canonicalId?: boolean
913
+ title?: boolean
914
+ jurisdiction?: boolean
915
+ region?: boolean
916
+ country?: boolean
917
+ category?: boolean
918
+ issuingAuthority?: boolean
919
+ effectiveDate?: boolean
920
+ summary?: boolean
921
+ content?: boolean
922
+ sourceUrl?: boolean
923
+ likeCount?: boolean
924
+ tags?: boolean
925
+ visibility?: boolean
926
+ userId?: boolean
927
+ isDeleted?: boolean
928
+ createdAt?: boolean
929
+ updatedAt?: boolean
930
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
931
+ }, ExtArgs["result"]["legalRegulation"]>
932
+
933
+ export type LegalRegulationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
934
+ id?: boolean
935
+ canonicalId?: boolean
936
+ title?: boolean
937
+ jurisdiction?: boolean
938
+ region?: boolean
939
+ country?: boolean
940
+ category?: boolean
941
+ issuingAuthority?: boolean
942
+ effectiveDate?: boolean
943
+ summary?: boolean
944
+ content?: boolean
945
+ sourceUrl?: boolean
946
+ likeCount?: boolean
947
+ tags?: boolean
948
+ visibility?: boolean
949
+ userId?: boolean
950
+ isDeleted?: boolean
951
+ createdAt?: boolean
952
+ updatedAt?: boolean
953
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
954
+ }, ExtArgs["result"]["legalRegulation"]>
955
+
956
+ export type LegalRegulationSelectScalar = {
957
+ id?: boolean
958
+ canonicalId?: boolean
959
+ title?: boolean
960
+ jurisdiction?: boolean
961
+ region?: boolean
962
+ country?: boolean
963
+ category?: boolean
964
+ issuingAuthority?: boolean
965
+ effectiveDate?: boolean
966
+ summary?: boolean
967
+ content?: boolean
968
+ sourceUrl?: boolean
969
+ likeCount?: boolean
970
+ tags?: boolean
971
+ visibility?: boolean
972
+ userId?: boolean
973
+ isDeleted?: boolean
974
+ createdAt?: boolean
975
+ updatedAt?: boolean
976
+ }
977
+
978
+ 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"]>
979
+ export type LegalRegulationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
980
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
981
+ }
982
+ export type LegalRegulationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
983
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
984
+ }
985
+ export type LegalRegulationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
986
+ user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
987
+ }
988
+
989
+ export type $LegalRegulationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
990
+ name: "LegalRegulation"
991
+ objects: {
992
+ user: Prisma.$UserPayload<ExtArgs>
993
+ }
994
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
995
+ id: string
996
+ canonicalId: string
997
+ title: string
998
+ jurisdiction: string
999
+ region: string | null
1000
+ country: string | null
1001
+ category: string
1002
+ issuingAuthority: string | null
1003
+ effectiveDate: Date | null
1004
+ summary: string | null
1005
+ content: string | null
1006
+ sourceUrl: string | null
1007
+ likeCount: number
1008
+ tags: runtime.JsonValue
1009
+ visibility: string
1010
+ userId: string
1011
+ isDeleted: boolean
1012
+ createdAt: Date
1013
+ updatedAt: Date
1014
+ }, ExtArgs["result"]["legalRegulation"]>
1015
+ composites: {}
1016
+ }
1017
+
1018
+ export type LegalRegulationGetPayload<S extends boolean | null | undefined | LegalRegulationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LegalRegulationPayload, S>
1019
+
1020
+ export type LegalRegulationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1021
+ Omit<LegalRegulationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1022
+ select?: LegalRegulationCountAggregateInputType | true
1023
+ }
1024
+
1025
+ export interface LegalRegulationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1026
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['LegalRegulation'], meta: { name: 'LegalRegulation' } }
1027
+ /**
1028
+ * Find zero or one LegalRegulation that matches the filter.
1029
+ * @param {LegalRegulationFindUniqueArgs} args - Arguments to find a LegalRegulation
1030
+ * @example
1031
+ * // Get one LegalRegulation
1032
+ * const legalRegulation = await prisma.legalRegulation.findUnique({
1033
+ * where: {
1034
+ * // ... provide filter here
1035
+ * }
1036
+ * })
1037
+ */
1038
+ 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>
1039
+
1040
+ /**
1041
+ * Find one LegalRegulation that matches the filter or throw an error with `error.code='P2025'`
1042
+ * if no matches were found.
1043
+ * @param {LegalRegulationFindUniqueOrThrowArgs} args - Arguments to find a LegalRegulation
1044
+ * @example
1045
+ * // Get one LegalRegulation
1046
+ * const legalRegulation = await prisma.legalRegulation.findUniqueOrThrow({
1047
+ * where: {
1048
+ * // ... provide filter here
1049
+ * }
1050
+ * })
1051
+ */
1052
+ 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>
1053
+
1054
+ /**
1055
+ * Find the first LegalRegulation that matches the filter.
1056
+ * Note, that providing `undefined` is treated as the value not being there.
1057
+ * Read more here: https://pris.ly/d/null-undefined
1058
+ * @param {LegalRegulationFindFirstArgs} args - Arguments to find a LegalRegulation
1059
+ * @example
1060
+ * // Get one LegalRegulation
1061
+ * const legalRegulation = await prisma.legalRegulation.findFirst({
1062
+ * where: {
1063
+ * // ... provide filter here
1064
+ * }
1065
+ * })
1066
+ */
1067
+ 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>
1068
+
1069
+ /**
1070
+ * Find the first LegalRegulation that matches the filter or
1071
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1072
+ * Note, that providing `undefined` is treated as the value not being there.
1073
+ * Read more here: https://pris.ly/d/null-undefined
1074
+ * @param {LegalRegulationFindFirstOrThrowArgs} args - Arguments to find a LegalRegulation
1075
+ * @example
1076
+ * // Get one LegalRegulation
1077
+ * const legalRegulation = await prisma.legalRegulation.findFirstOrThrow({
1078
+ * where: {
1079
+ * // ... provide filter here
1080
+ * }
1081
+ * })
1082
+ */
1083
+ 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>
1084
+
1085
+ /**
1086
+ * Find zero or more LegalRegulations that matches the filter.
1087
+ * Note, that providing `undefined` is treated as the value not being there.
1088
+ * Read more here: https://pris.ly/d/null-undefined
1089
+ * @param {LegalRegulationFindManyArgs} args - Arguments to filter and select certain fields only.
1090
+ * @example
1091
+ * // Get all LegalRegulations
1092
+ * const legalRegulations = await prisma.legalRegulation.findMany()
1093
+ *
1094
+ * // Get first 10 LegalRegulations
1095
+ * const legalRegulations = await prisma.legalRegulation.findMany({ take: 10 })
1096
+ *
1097
+ * // Only select the `id`
1098
+ * const legalRegulationWithIdOnly = await prisma.legalRegulation.findMany({ select: { id: true } })
1099
+ *
1100
+ */
1101
+ findMany<T extends LegalRegulationFindManyArgs>(args?: Prisma.SelectSubset<T, LegalRegulationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalRegulationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1102
+
1103
+ /**
1104
+ * Create a LegalRegulation.
1105
+ * @param {LegalRegulationCreateArgs} args - Arguments to create a LegalRegulation.
1106
+ * @example
1107
+ * // Create one LegalRegulation
1108
+ * const LegalRegulation = await prisma.legalRegulation.create({
1109
+ * data: {
1110
+ * // ... data to create a LegalRegulation
1111
+ * }
1112
+ * })
1113
+ *
1114
+ */
1115
+ 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>
1116
+
1117
+ /**
1118
+ * Create many LegalRegulations.
1119
+ * @param {LegalRegulationCreateManyArgs} args - Arguments to create many LegalRegulations.
1120
+ * @example
1121
+ * // Create many LegalRegulations
1122
+ * const legalRegulation = await prisma.legalRegulation.createMany({
1123
+ * data: [
1124
+ * // ... provide data here
1125
+ * ]
1126
+ * })
1127
+ *
1128
+ */
1129
+ createMany<T extends LegalRegulationCreateManyArgs>(args?: Prisma.SelectSubset<T, LegalRegulationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1130
+
1131
+ /**
1132
+ * Create many LegalRegulations and returns the data saved in the database.
1133
+ * @param {LegalRegulationCreateManyAndReturnArgs} args - Arguments to create many LegalRegulations.
1134
+ * @example
1135
+ * // Create many LegalRegulations
1136
+ * const legalRegulation = await prisma.legalRegulation.createManyAndReturn({
1137
+ * data: [
1138
+ * // ... provide data here
1139
+ * ]
1140
+ * })
1141
+ *
1142
+ * // Create many LegalRegulations and only return the `id`
1143
+ * const legalRegulationWithIdOnly = await prisma.legalRegulation.createManyAndReturn({
1144
+ * select: { id: true },
1145
+ * data: [
1146
+ * // ... provide data here
1147
+ * ]
1148
+ * })
1149
+ * Note, that providing `undefined` is treated as the value not being there.
1150
+ * Read more here: https://pris.ly/d/null-undefined
1151
+ *
1152
+ */
1153
+ createManyAndReturn<T extends LegalRegulationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LegalRegulationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalRegulationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1154
+
1155
+ /**
1156
+ * Delete a LegalRegulation.
1157
+ * @param {LegalRegulationDeleteArgs} args - Arguments to delete one LegalRegulation.
1158
+ * @example
1159
+ * // Delete one LegalRegulation
1160
+ * const LegalRegulation = await prisma.legalRegulation.delete({
1161
+ * where: {
1162
+ * // ... filter to delete one LegalRegulation
1163
+ * }
1164
+ * })
1165
+ *
1166
+ */
1167
+ 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>
1168
+
1169
+ /**
1170
+ * Update one LegalRegulation.
1171
+ * @param {LegalRegulationUpdateArgs} args - Arguments to update one LegalRegulation.
1172
+ * @example
1173
+ * // Update one LegalRegulation
1174
+ * const legalRegulation = await prisma.legalRegulation.update({
1175
+ * where: {
1176
+ * // ... provide filter here
1177
+ * },
1178
+ * data: {
1179
+ * // ... provide data here
1180
+ * }
1181
+ * })
1182
+ *
1183
+ */
1184
+ 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>
1185
+
1186
+ /**
1187
+ * Delete zero or more LegalRegulations.
1188
+ * @param {LegalRegulationDeleteManyArgs} args - Arguments to filter LegalRegulations to delete.
1189
+ * @example
1190
+ * // Delete a few LegalRegulations
1191
+ * const { count } = await prisma.legalRegulation.deleteMany({
1192
+ * where: {
1193
+ * // ... provide filter here
1194
+ * }
1195
+ * })
1196
+ *
1197
+ */
1198
+ deleteMany<T extends LegalRegulationDeleteManyArgs>(args?: Prisma.SelectSubset<T, LegalRegulationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1199
+
1200
+ /**
1201
+ * Update zero or more LegalRegulations.
1202
+ * Note, that providing `undefined` is treated as the value not being there.
1203
+ * Read more here: https://pris.ly/d/null-undefined
1204
+ * @param {LegalRegulationUpdateManyArgs} args - Arguments to update one or more rows.
1205
+ * @example
1206
+ * // Update many LegalRegulations
1207
+ * const legalRegulation = await prisma.legalRegulation.updateMany({
1208
+ * where: {
1209
+ * // ... provide filter here
1210
+ * },
1211
+ * data: {
1212
+ * // ... provide data here
1213
+ * }
1214
+ * })
1215
+ *
1216
+ */
1217
+ updateMany<T extends LegalRegulationUpdateManyArgs>(args: Prisma.SelectSubset<T, LegalRegulationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1218
+
1219
+ /**
1220
+ * Update zero or more LegalRegulations and returns the data updated in the database.
1221
+ * @param {LegalRegulationUpdateManyAndReturnArgs} args - Arguments to update many LegalRegulations.
1222
+ * @example
1223
+ * // Update many LegalRegulations
1224
+ * const legalRegulation = await prisma.legalRegulation.updateManyAndReturn({
1225
+ * where: {
1226
+ * // ... provide filter here
1227
+ * },
1228
+ * data: [
1229
+ * // ... provide data here
1230
+ * ]
1231
+ * })
1232
+ *
1233
+ * // Update zero or more LegalRegulations and only return the `id`
1234
+ * const legalRegulationWithIdOnly = await prisma.legalRegulation.updateManyAndReturn({
1235
+ * select: { id: true },
1236
+ * where: {
1237
+ * // ... provide filter here
1238
+ * },
1239
+ * data: [
1240
+ * // ... provide data here
1241
+ * ]
1242
+ * })
1243
+ * Note, that providing `undefined` is treated as the value not being there.
1244
+ * Read more here: https://pris.ly/d/null-undefined
1245
+ *
1246
+ */
1247
+ updateManyAndReturn<T extends LegalRegulationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LegalRegulationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LegalRegulationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1248
+
1249
+ /**
1250
+ * Create or update one LegalRegulation.
1251
+ * @param {LegalRegulationUpsertArgs} args - Arguments to update or create a LegalRegulation.
1252
+ * @example
1253
+ * // Update or create a LegalRegulation
1254
+ * const legalRegulation = await prisma.legalRegulation.upsert({
1255
+ * create: {
1256
+ * // ... data to create a LegalRegulation
1257
+ * },
1258
+ * update: {
1259
+ * // ... in case it already exists, update
1260
+ * },
1261
+ * where: {
1262
+ * // ... the filter for the LegalRegulation we want to update
1263
+ * }
1264
+ * })
1265
+ */
1266
+ 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>
1267
+
1268
+
1269
+ /**
1270
+ * Count the number of LegalRegulations.
1271
+ * Note, that providing `undefined` is treated as the value not being there.
1272
+ * Read more here: https://pris.ly/d/null-undefined
1273
+ * @param {LegalRegulationCountArgs} args - Arguments to filter LegalRegulations to count.
1274
+ * @example
1275
+ * // Count the number of LegalRegulations
1276
+ * const count = await prisma.legalRegulation.count({
1277
+ * where: {
1278
+ * // ... the filter for the LegalRegulations we want to count
1279
+ * }
1280
+ * })
1281
+ **/
1282
+ count<T extends LegalRegulationCountArgs>(
1283
+ args?: Prisma.Subset<T, LegalRegulationCountArgs>,
1284
+ ): Prisma.PrismaPromise<
1285
+ T extends runtime.Types.Utils.Record<'select', any>
1286
+ ? T['select'] extends true
1287
+ ? number
1288
+ : Prisma.GetScalarType<T['select'], LegalRegulationCountAggregateOutputType>
1289
+ : number
1290
+ >
1291
+
1292
+ /**
1293
+ * Allows you to perform aggregations operations on a LegalRegulation.
1294
+ * Note, that providing `undefined` is treated as the value not being there.
1295
+ * Read more here: https://pris.ly/d/null-undefined
1296
+ * @param {LegalRegulationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1297
+ * @example
1298
+ * // Ordered by age ascending
1299
+ * // Where email contains prisma.io
1300
+ * // Limited to the 10 users
1301
+ * const aggregations = await prisma.user.aggregate({
1302
+ * _avg: {
1303
+ * age: true,
1304
+ * },
1305
+ * where: {
1306
+ * email: {
1307
+ * contains: "prisma.io",
1308
+ * },
1309
+ * },
1310
+ * orderBy: {
1311
+ * age: "asc",
1312
+ * },
1313
+ * take: 10,
1314
+ * })
1315
+ **/
1316
+ aggregate<T extends LegalRegulationAggregateArgs>(args: Prisma.Subset<T, LegalRegulationAggregateArgs>): Prisma.PrismaPromise<GetLegalRegulationAggregateType<T>>
1317
+
1318
+ /**
1319
+ * Group by LegalRegulation.
1320
+ * Note, that providing `undefined` is treated as the value not being there.
1321
+ * Read more here: https://pris.ly/d/null-undefined
1322
+ * @param {LegalRegulationGroupByArgs} args - Group by arguments.
1323
+ * @example
1324
+ * // Group by city, order by createdAt, get count
1325
+ * const result = await prisma.user.groupBy({
1326
+ * by: ['city', 'createdAt'],
1327
+ * orderBy: {
1328
+ * createdAt: true
1329
+ * },
1330
+ * _count: {
1331
+ * _all: true
1332
+ * },
1333
+ * })
1334
+ *
1335
+ **/
1336
+ groupBy<
1337
+ T extends LegalRegulationGroupByArgs,
1338
+ HasSelectOrTake extends Prisma.Or<
1339
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1340
+ Prisma.Extends<'take', Prisma.Keys<T>>
1341
+ >,
1342
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1343
+ ? { orderBy: LegalRegulationGroupByArgs['orderBy'] }
1344
+ : { orderBy?: LegalRegulationGroupByArgs['orderBy'] },
1345
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1346
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1347
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1348
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1349
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1350
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1351
+ InputErrors extends ByEmpty extends Prisma.True
1352
+ ? `Error: "by" must not be empty.`
1353
+ : HavingValid extends Prisma.False
1354
+ ? {
1355
+ [P in HavingFields]: P extends ByFields
1356
+ ? never
1357
+ : P extends string
1358
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1359
+ : [
1360
+ Error,
1361
+ 'Field ',
1362
+ P,
1363
+ ` in "having" needs to be provided in "by"`,
1364
+ ]
1365
+ }[HavingFields]
1366
+ : 'take' extends Prisma.Keys<T>
1367
+ ? 'orderBy' extends Prisma.Keys<T>
1368
+ ? ByValid extends Prisma.True
1369
+ ? {}
1370
+ : {
1371
+ [P in OrderFields]: P extends ByFields
1372
+ ? never
1373
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1374
+ }[OrderFields]
1375
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1376
+ : 'skip' extends Prisma.Keys<T>
1377
+ ? 'orderBy' extends Prisma.Keys<T>
1378
+ ? ByValid extends Prisma.True
1379
+ ? {}
1380
+ : {
1381
+ [P in OrderFields]: P extends ByFields
1382
+ ? never
1383
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1384
+ }[OrderFields]
1385
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1386
+ : ByValid extends Prisma.True
1387
+ ? {}
1388
+ : {
1389
+ [P in OrderFields]: P extends ByFields
1390
+ ? never
1391
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1392
+ }[OrderFields]
1393
+ >(args: Prisma.SubsetIntersection<T, LegalRegulationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLegalRegulationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1394
+ /**
1395
+ * Fields of the LegalRegulation model
1396
+ */
1397
+ readonly fields: LegalRegulationFieldRefs;
1398
+ }
1399
+
1400
+ /**
1401
+ * The delegate class that acts as a "Promise-like" for LegalRegulation.
1402
+ * Why is this prefixed with `Prisma__`?
1403
+ * Because we want to prevent naming conflicts as mentioned in
1404
+ * https://github.com/prisma/prisma-client-js/issues/707
1405
+ */
1406
+ export interface Prisma__LegalRegulationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1407
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1408
+ 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>
1409
+ /**
1410
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1411
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1412
+ * @param onrejected The callback to execute when the Promise is rejected.
1413
+ * @returns A Promise for the completion of which ever callback is executed.
1414
+ */
1415
+ 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>
1416
+ /**
1417
+ * Attaches a callback for only the rejection of the Promise.
1418
+ * @param onrejected The callback to execute when the Promise is rejected.
1419
+ * @returns A Promise for the completion of the callback.
1420
+ */
1421
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1422
+ /**
1423
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1424
+ * resolved value cannot be modified from the callback.
1425
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1426
+ * @returns A Promise for the completion of the callback.
1427
+ */
1428
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1429
+ }
1430
+
1431
+
1432
+
1433
+
1434
+ /**
1435
+ * Fields of the LegalRegulation model
1436
+ */
1437
+ export interface LegalRegulationFieldRefs {
1438
+ readonly id: Prisma.FieldRef<"LegalRegulation", 'String'>
1439
+ readonly canonicalId: Prisma.FieldRef<"LegalRegulation", 'String'>
1440
+ readonly title: Prisma.FieldRef<"LegalRegulation", 'String'>
1441
+ readonly jurisdiction: Prisma.FieldRef<"LegalRegulation", 'String'>
1442
+ readonly region: Prisma.FieldRef<"LegalRegulation", 'String'>
1443
+ readonly country: Prisma.FieldRef<"LegalRegulation", 'String'>
1444
+ readonly category: Prisma.FieldRef<"LegalRegulation", 'String'>
1445
+ readonly issuingAuthority: Prisma.FieldRef<"LegalRegulation", 'String'>
1446
+ readonly effectiveDate: Prisma.FieldRef<"LegalRegulation", 'DateTime'>
1447
+ readonly summary: Prisma.FieldRef<"LegalRegulation", 'String'>
1448
+ readonly content: Prisma.FieldRef<"LegalRegulation", 'String'>
1449
+ readonly sourceUrl: Prisma.FieldRef<"LegalRegulation", 'String'>
1450
+ readonly likeCount: Prisma.FieldRef<"LegalRegulation", 'Int'>
1451
+ readonly tags: Prisma.FieldRef<"LegalRegulation", 'Json'>
1452
+ readonly visibility: Prisma.FieldRef<"LegalRegulation", 'String'>
1453
+ readonly userId: Prisma.FieldRef<"LegalRegulation", 'String'>
1454
+ readonly isDeleted: Prisma.FieldRef<"LegalRegulation", 'Boolean'>
1455
+ readonly createdAt: Prisma.FieldRef<"LegalRegulation", 'DateTime'>
1456
+ readonly updatedAt: Prisma.FieldRef<"LegalRegulation", 'DateTime'>
1457
+ }
1458
+
1459
+
1460
+ // Custom InputTypes
1461
+ /**
1462
+ * LegalRegulation findUnique
1463
+ */
1464
+ export type LegalRegulationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1465
+ /**
1466
+ * Select specific fields to fetch from the LegalRegulation
1467
+ */
1468
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1469
+ /**
1470
+ * Omit specific fields from the LegalRegulation
1471
+ */
1472
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1473
+ /**
1474
+ * Choose, which related nodes to fetch as well
1475
+ */
1476
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1477
+ /**
1478
+ * Filter, which LegalRegulation to fetch.
1479
+ */
1480
+ where: Prisma.LegalRegulationWhereUniqueInput
1481
+ }
1482
+
1483
+ /**
1484
+ * LegalRegulation findUniqueOrThrow
1485
+ */
1486
+ export type LegalRegulationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1487
+ /**
1488
+ * Select specific fields to fetch from the LegalRegulation
1489
+ */
1490
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1491
+ /**
1492
+ * Omit specific fields from the LegalRegulation
1493
+ */
1494
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1495
+ /**
1496
+ * Choose, which related nodes to fetch as well
1497
+ */
1498
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1499
+ /**
1500
+ * Filter, which LegalRegulation to fetch.
1501
+ */
1502
+ where: Prisma.LegalRegulationWhereUniqueInput
1503
+ }
1504
+
1505
+ /**
1506
+ * LegalRegulation findFirst
1507
+ */
1508
+ export type LegalRegulationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1509
+ /**
1510
+ * Select specific fields to fetch from the LegalRegulation
1511
+ */
1512
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1513
+ /**
1514
+ * Omit specific fields from the LegalRegulation
1515
+ */
1516
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1517
+ /**
1518
+ * Choose, which related nodes to fetch as well
1519
+ */
1520
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1521
+ /**
1522
+ * Filter, which LegalRegulation to fetch.
1523
+ */
1524
+ where?: Prisma.LegalRegulationWhereInput
1525
+ /**
1526
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1527
+ *
1528
+ * Determine the order of LegalRegulations to fetch.
1529
+ */
1530
+ orderBy?: Prisma.LegalRegulationOrderByWithRelationInput | Prisma.LegalRegulationOrderByWithRelationInput[]
1531
+ /**
1532
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1533
+ *
1534
+ * Sets the position for searching for LegalRegulations.
1535
+ */
1536
+ cursor?: Prisma.LegalRegulationWhereUniqueInput
1537
+ /**
1538
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1539
+ *
1540
+ * Take `±n` LegalRegulations from the position of the cursor.
1541
+ */
1542
+ take?: number
1543
+ /**
1544
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1545
+ *
1546
+ * Skip the first `n` LegalRegulations.
1547
+ */
1548
+ skip?: number
1549
+ /**
1550
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1551
+ *
1552
+ * Filter by unique combinations of LegalRegulations.
1553
+ */
1554
+ distinct?: Prisma.LegalRegulationScalarFieldEnum | Prisma.LegalRegulationScalarFieldEnum[]
1555
+ }
1556
+
1557
+ /**
1558
+ * LegalRegulation findFirstOrThrow
1559
+ */
1560
+ export type LegalRegulationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1561
+ /**
1562
+ * Select specific fields to fetch from the LegalRegulation
1563
+ */
1564
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1565
+ /**
1566
+ * Omit specific fields from the LegalRegulation
1567
+ */
1568
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1569
+ /**
1570
+ * Choose, which related nodes to fetch as well
1571
+ */
1572
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1573
+ /**
1574
+ * Filter, which LegalRegulation to fetch.
1575
+ */
1576
+ where?: Prisma.LegalRegulationWhereInput
1577
+ /**
1578
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1579
+ *
1580
+ * Determine the order of LegalRegulations to fetch.
1581
+ */
1582
+ orderBy?: Prisma.LegalRegulationOrderByWithRelationInput | Prisma.LegalRegulationOrderByWithRelationInput[]
1583
+ /**
1584
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1585
+ *
1586
+ * Sets the position for searching for LegalRegulations.
1587
+ */
1588
+ cursor?: Prisma.LegalRegulationWhereUniqueInput
1589
+ /**
1590
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1591
+ *
1592
+ * Take `±n` LegalRegulations from the position of the cursor.
1593
+ */
1594
+ take?: number
1595
+ /**
1596
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1597
+ *
1598
+ * Skip the first `n` LegalRegulations.
1599
+ */
1600
+ skip?: number
1601
+ /**
1602
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1603
+ *
1604
+ * Filter by unique combinations of LegalRegulations.
1605
+ */
1606
+ distinct?: Prisma.LegalRegulationScalarFieldEnum | Prisma.LegalRegulationScalarFieldEnum[]
1607
+ }
1608
+
1609
+ /**
1610
+ * LegalRegulation findMany
1611
+ */
1612
+ export type LegalRegulationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1613
+ /**
1614
+ * Select specific fields to fetch from the LegalRegulation
1615
+ */
1616
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1617
+ /**
1618
+ * Omit specific fields from the LegalRegulation
1619
+ */
1620
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1621
+ /**
1622
+ * Choose, which related nodes to fetch as well
1623
+ */
1624
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1625
+ /**
1626
+ * Filter, which LegalRegulations to fetch.
1627
+ */
1628
+ where?: Prisma.LegalRegulationWhereInput
1629
+ /**
1630
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1631
+ *
1632
+ * Determine the order of LegalRegulations to fetch.
1633
+ */
1634
+ orderBy?: Prisma.LegalRegulationOrderByWithRelationInput | Prisma.LegalRegulationOrderByWithRelationInput[]
1635
+ /**
1636
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1637
+ *
1638
+ * Sets the position for listing LegalRegulations.
1639
+ */
1640
+ cursor?: Prisma.LegalRegulationWhereUniqueInput
1641
+ /**
1642
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1643
+ *
1644
+ * Take `±n` LegalRegulations from the position of the cursor.
1645
+ */
1646
+ take?: number
1647
+ /**
1648
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1649
+ *
1650
+ * Skip the first `n` LegalRegulations.
1651
+ */
1652
+ skip?: number
1653
+ /**
1654
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1655
+ *
1656
+ * Filter by unique combinations of LegalRegulations.
1657
+ */
1658
+ distinct?: Prisma.LegalRegulationScalarFieldEnum | Prisma.LegalRegulationScalarFieldEnum[]
1659
+ }
1660
+
1661
+ /**
1662
+ * LegalRegulation create
1663
+ */
1664
+ export type LegalRegulationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1665
+ /**
1666
+ * Select specific fields to fetch from the LegalRegulation
1667
+ */
1668
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1669
+ /**
1670
+ * Omit specific fields from the LegalRegulation
1671
+ */
1672
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1673
+ /**
1674
+ * Choose, which related nodes to fetch as well
1675
+ */
1676
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1677
+ /**
1678
+ * The data needed to create a LegalRegulation.
1679
+ */
1680
+ data: Prisma.XOR<Prisma.LegalRegulationCreateInput, Prisma.LegalRegulationUncheckedCreateInput>
1681
+ }
1682
+
1683
+ /**
1684
+ * LegalRegulation createMany
1685
+ */
1686
+ export type LegalRegulationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1687
+ /**
1688
+ * The data used to create many LegalRegulations.
1689
+ */
1690
+ data: Prisma.LegalRegulationCreateManyInput | Prisma.LegalRegulationCreateManyInput[]
1691
+ skipDuplicates?: boolean
1692
+ }
1693
+
1694
+ /**
1695
+ * LegalRegulation createManyAndReturn
1696
+ */
1697
+ export type LegalRegulationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1698
+ /**
1699
+ * Select specific fields to fetch from the LegalRegulation
1700
+ */
1701
+ select?: Prisma.LegalRegulationSelectCreateManyAndReturn<ExtArgs> | null
1702
+ /**
1703
+ * Omit specific fields from the LegalRegulation
1704
+ */
1705
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1706
+ /**
1707
+ * The data used to create many LegalRegulations.
1708
+ */
1709
+ data: Prisma.LegalRegulationCreateManyInput | Prisma.LegalRegulationCreateManyInput[]
1710
+ skipDuplicates?: boolean
1711
+ /**
1712
+ * Choose, which related nodes to fetch as well
1713
+ */
1714
+ include?: Prisma.LegalRegulationIncludeCreateManyAndReturn<ExtArgs> | null
1715
+ }
1716
+
1717
+ /**
1718
+ * LegalRegulation update
1719
+ */
1720
+ export type LegalRegulationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1721
+ /**
1722
+ * Select specific fields to fetch from the LegalRegulation
1723
+ */
1724
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1725
+ /**
1726
+ * Omit specific fields from the LegalRegulation
1727
+ */
1728
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1729
+ /**
1730
+ * Choose, which related nodes to fetch as well
1731
+ */
1732
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1733
+ /**
1734
+ * The data needed to update a LegalRegulation.
1735
+ */
1736
+ data: Prisma.XOR<Prisma.LegalRegulationUpdateInput, Prisma.LegalRegulationUncheckedUpdateInput>
1737
+ /**
1738
+ * Choose, which LegalRegulation to update.
1739
+ */
1740
+ where: Prisma.LegalRegulationWhereUniqueInput
1741
+ }
1742
+
1743
+ /**
1744
+ * LegalRegulation updateMany
1745
+ */
1746
+ export type LegalRegulationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1747
+ /**
1748
+ * The data used to update LegalRegulations.
1749
+ */
1750
+ data: Prisma.XOR<Prisma.LegalRegulationUpdateManyMutationInput, Prisma.LegalRegulationUncheckedUpdateManyInput>
1751
+ /**
1752
+ * Filter which LegalRegulations to update
1753
+ */
1754
+ where?: Prisma.LegalRegulationWhereInput
1755
+ /**
1756
+ * Limit how many LegalRegulations to update.
1757
+ */
1758
+ limit?: number
1759
+ }
1760
+
1761
+ /**
1762
+ * LegalRegulation updateManyAndReturn
1763
+ */
1764
+ export type LegalRegulationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1765
+ /**
1766
+ * Select specific fields to fetch from the LegalRegulation
1767
+ */
1768
+ select?: Prisma.LegalRegulationSelectUpdateManyAndReturn<ExtArgs> | null
1769
+ /**
1770
+ * Omit specific fields from the LegalRegulation
1771
+ */
1772
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1773
+ /**
1774
+ * The data used to update LegalRegulations.
1775
+ */
1776
+ data: Prisma.XOR<Prisma.LegalRegulationUpdateManyMutationInput, Prisma.LegalRegulationUncheckedUpdateManyInput>
1777
+ /**
1778
+ * Filter which LegalRegulations to update
1779
+ */
1780
+ where?: Prisma.LegalRegulationWhereInput
1781
+ /**
1782
+ * Limit how many LegalRegulations to update.
1783
+ */
1784
+ limit?: number
1785
+ /**
1786
+ * Choose, which related nodes to fetch as well
1787
+ */
1788
+ include?: Prisma.LegalRegulationIncludeUpdateManyAndReturn<ExtArgs> | null
1789
+ }
1790
+
1791
+ /**
1792
+ * LegalRegulation upsert
1793
+ */
1794
+ export type LegalRegulationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1795
+ /**
1796
+ * Select specific fields to fetch from the LegalRegulation
1797
+ */
1798
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1799
+ /**
1800
+ * Omit specific fields from the LegalRegulation
1801
+ */
1802
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1803
+ /**
1804
+ * Choose, which related nodes to fetch as well
1805
+ */
1806
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1807
+ /**
1808
+ * The filter to search for the LegalRegulation to update in case it exists.
1809
+ */
1810
+ where: Prisma.LegalRegulationWhereUniqueInput
1811
+ /**
1812
+ * In case the LegalRegulation found by the `where` argument doesn't exist, create a new LegalRegulation with this data.
1813
+ */
1814
+ create: Prisma.XOR<Prisma.LegalRegulationCreateInput, Prisma.LegalRegulationUncheckedCreateInput>
1815
+ /**
1816
+ * In case the LegalRegulation was found with the provided `where` argument, update it with this data.
1817
+ */
1818
+ update: Prisma.XOR<Prisma.LegalRegulationUpdateInput, Prisma.LegalRegulationUncheckedUpdateInput>
1819
+ }
1820
+
1821
+ /**
1822
+ * LegalRegulation delete
1823
+ */
1824
+ export type LegalRegulationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1825
+ /**
1826
+ * Select specific fields to fetch from the LegalRegulation
1827
+ */
1828
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1829
+ /**
1830
+ * Omit specific fields from the LegalRegulation
1831
+ */
1832
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1833
+ /**
1834
+ * Choose, which related nodes to fetch as well
1835
+ */
1836
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1837
+ /**
1838
+ * Filter which LegalRegulation to delete.
1839
+ */
1840
+ where: Prisma.LegalRegulationWhereUniqueInput
1841
+ }
1842
+
1843
+ /**
1844
+ * LegalRegulation deleteMany
1845
+ */
1846
+ export type LegalRegulationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1847
+ /**
1848
+ * Filter which LegalRegulations to delete
1849
+ */
1850
+ where?: Prisma.LegalRegulationWhereInput
1851
+ /**
1852
+ * Limit how many LegalRegulations to delete.
1853
+ */
1854
+ limit?: number
1855
+ }
1856
+
1857
+ /**
1858
+ * LegalRegulation without action
1859
+ */
1860
+ export type LegalRegulationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1861
+ /**
1862
+ * Select specific fields to fetch from the LegalRegulation
1863
+ */
1864
+ select?: Prisma.LegalRegulationSelect<ExtArgs> | null
1865
+ /**
1866
+ * Omit specific fields from the LegalRegulation
1867
+ */
1868
+ omit?: Prisma.LegalRegulationOmit<ExtArgs> | null
1869
+ /**
1870
+ * Choose, which related nodes to fetch as well
1871
+ */
1872
+ include?: Prisma.LegalRegulationInclude<ExtArgs> | null
1873
+ }