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