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