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