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