@naisys/erp 3.0.0-beta.3

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.

Potentially problematic release.


This version of @naisys/erp might be problematic. Click here for more details.

Files changed (201) hide show
  1. package/bin/naisys-erp +2 -0
  2. package/client-dist/android-chrome-192x192.png +0 -0
  3. package/client-dist/android-chrome-512x512.png +0 -0
  4. package/client-dist/apple-touch-icon.png +0 -0
  5. package/client-dist/assets/index-45dVo30p.css +1 -0
  6. package/client-dist/assets/index-Dffms7F_.js +168 -0
  7. package/client-dist/assets/naisys-logo-CzoPnn5I.webp +0 -0
  8. package/client-dist/favicon.ico +0 -0
  9. package/client-dist/index.html +42 -0
  10. package/client-dist/site.webmanifest +22 -0
  11. package/dist/api-reference.d.ts +10 -0
  12. package/dist/api-reference.js +101 -0
  13. package/dist/audit.d.ts +5 -0
  14. package/dist/audit.js +14 -0
  15. package/dist/auth-middleware.d.ts +18 -0
  16. package/dist/auth-middleware.js +203 -0
  17. package/dist/dbConfig.d.ts +5 -0
  18. package/dist/dbConfig.js +10 -0
  19. package/dist/erpDb.d.ts +10 -0
  20. package/dist/erpDb.js +34 -0
  21. package/dist/erpServer.d.ts +10 -0
  22. package/dist/erpServer.js +321 -0
  23. package/dist/error-handler.d.ts +7 -0
  24. package/dist/error-handler.js +17 -0
  25. package/dist/generated/prisma/client.d.ts +154 -0
  26. package/dist/generated/prisma/client.js +35 -0
  27. package/dist/generated/prisma/commonInputTypes.d.ts +637 -0
  28. package/dist/generated/prisma/commonInputTypes.js +11 -0
  29. package/dist/generated/prisma/enums.d.ts +59 -0
  30. package/dist/generated/prisma/enums.js +60 -0
  31. package/dist/generated/prisma/internal/class.d.ts +406 -0
  32. package/dist/generated/prisma/internal/class.js +50 -0
  33. package/dist/generated/prisma/internal/prismaNamespace.d.ts +2722 -0
  34. package/dist/generated/prisma/internal/prismaNamespace.js +366 -0
  35. package/dist/generated/prisma/models/Attachment.d.ts +1455 -0
  36. package/dist/generated/prisma/models/Attachment.js +2 -0
  37. package/dist/generated/prisma/models/AuditLog.d.ts +1359 -0
  38. package/dist/generated/prisma/models/AuditLog.js +2 -0
  39. package/dist/generated/prisma/models/Field.d.ts +1880 -0
  40. package/dist/generated/prisma/models/Field.js +2 -0
  41. package/dist/generated/prisma/models/FieldAttachment.d.ts +1245 -0
  42. package/dist/generated/prisma/models/FieldAttachment.js +2 -0
  43. package/dist/generated/prisma/models/FieldRecord.d.ts +1625 -0
  44. package/dist/generated/prisma/models/FieldRecord.js +2 -0
  45. package/dist/generated/prisma/models/FieldSet.d.ts +1577 -0
  46. package/dist/generated/prisma/models/FieldSet.js +2 -0
  47. package/dist/generated/prisma/models/FieldValue.d.ts +1908 -0
  48. package/dist/generated/prisma/models/FieldValue.js +2 -0
  49. package/dist/generated/prisma/models/Item.d.ts +1858 -0
  50. package/dist/generated/prisma/models/Item.js +2 -0
  51. package/dist/generated/prisma/models/ItemInstance.d.ts +1987 -0
  52. package/dist/generated/prisma/models/ItemInstance.js +2 -0
  53. package/dist/generated/prisma/models/LaborTicket.d.ts +1867 -0
  54. package/dist/generated/prisma/models/LaborTicket.js +2 -0
  55. package/dist/generated/prisma/models/Operation.d.ts +2578 -0
  56. package/dist/generated/prisma/models/Operation.js +2 -0
  57. package/dist/generated/prisma/models/OperationDependency.d.ts +1434 -0
  58. package/dist/generated/prisma/models/OperationDependency.js +2 -0
  59. package/dist/generated/prisma/models/OperationFieldRef.d.ts +1539 -0
  60. package/dist/generated/prisma/models/OperationFieldRef.js +2 -0
  61. package/dist/generated/prisma/models/OperationRun.d.ts +2563 -0
  62. package/dist/generated/prisma/models/OperationRun.js +2 -0
  63. package/dist/generated/prisma/models/OperationRunComment.d.ts +1366 -0
  64. package/dist/generated/prisma/models/OperationRunComment.js +2 -0
  65. package/dist/generated/prisma/models/Order.d.ts +1931 -0
  66. package/dist/generated/prisma/models/Order.js +2 -0
  67. package/dist/generated/prisma/models/OrderRevision.d.ts +1962 -0
  68. package/dist/generated/prisma/models/OrderRevision.js +2 -0
  69. package/dist/generated/prisma/models/OrderRun.d.ts +2310 -0
  70. package/dist/generated/prisma/models/OrderRun.js +2 -0
  71. package/dist/generated/prisma/models/SchemaVersion.d.ts +985 -0
  72. package/dist/generated/prisma/models/SchemaVersion.js +2 -0
  73. package/dist/generated/prisma/models/Session.d.ts +1213 -0
  74. package/dist/generated/prisma/models/Session.js +2 -0
  75. package/dist/generated/prisma/models/Step.d.ts +2180 -0
  76. package/dist/generated/prisma/models/Step.js +2 -0
  77. package/dist/generated/prisma/models/StepRun.d.ts +1963 -0
  78. package/dist/generated/prisma/models/StepRun.js +2 -0
  79. package/dist/generated/prisma/models/User.d.ts +11819 -0
  80. package/dist/generated/prisma/models/User.js +2 -0
  81. package/dist/generated/prisma/models/UserPermission.d.ts +1348 -0
  82. package/dist/generated/prisma/models/UserPermission.js +2 -0
  83. package/dist/generated/prisma/models/WorkCenter.d.ts +1657 -0
  84. package/dist/generated/prisma/models/WorkCenter.js +2 -0
  85. package/dist/generated/prisma/models/WorkCenterUser.d.ts +1390 -0
  86. package/dist/generated/prisma/models/WorkCenterUser.js +2 -0
  87. package/dist/generated/prisma/models.d.ts +28 -0
  88. package/dist/generated/prisma/models.js +2 -0
  89. package/dist/hateoas.d.ts +7 -0
  90. package/dist/hateoas.js +61 -0
  91. package/dist/route-helpers.d.ts +318 -0
  92. package/dist/route-helpers.js +220 -0
  93. package/dist/routes/admin.d.ts +3 -0
  94. package/dist/routes/admin.js +147 -0
  95. package/dist/routes/audit.d.ts +3 -0
  96. package/dist/routes/audit.js +36 -0
  97. package/dist/routes/auth.d.ts +3 -0
  98. package/dist/routes/auth.js +112 -0
  99. package/dist/routes/dispatch.d.ts +3 -0
  100. package/dist/routes/dispatch.js +174 -0
  101. package/dist/routes/inventory.d.ts +3 -0
  102. package/dist/routes/inventory.js +70 -0
  103. package/dist/routes/item-fields.d.ts +3 -0
  104. package/dist/routes/item-fields.js +220 -0
  105. package/dist/routes/item-instances.d.ts +3 -0
  106. package/dist/routes/item-instances.js +426 -0
  107. package/dist/routes/items.d.ts +3 -0
  108. package/dist/routes/items.js +252 -0
  109. package/dist/routes/labor-tickets.d.ts +3 -0
  110. package/dist/routes/labor-tickets.js +268 -0
  111. package/dist/routes/operation-dependencies.d.ts +3 -0
  112. package/dist/routes/operation-dependencies.js +170 -0
  113. package/dist/routes/operation-field-refs.d.ts +3 -0
  114. package/dist/routes/operation-field-refs.js +263 -0
  115. package/dist/routes/operation-run-comments.d.ts +3 -0
  116. package/dist/routes/operation-run-comments.js +108 -0
  117. package/dist/routes/operation-run-transitions.d.ts +3 -0
  118. package/dist/routes/operation-run-transitions.js +249 -0
  119. package/dist/routes/operation-runs.d.ts +112 -0
  120. package/dist/routes/operation-runs.js +299 -0
  121. package/dist/routes/operations.d.ts +3 -0
  122. package/dist/routes/operations.js +283 -0
  123. package/dist/routes/order-revision-transitions.d.ts +3 -0
  124. package/dist/routes/order-revision-transitions.js +86 -0
  125. package/dist/routes/order-revisions.d.ts +51 -0
  126. package/dist/routes/order-revisions.js +327 -0
  127. package/dist/routes/order-run-transitions.d.ts +3 -0
  128. package/dist/routes/order-run-transitions.js +215 -0
  129. package/dist/routes/order-runs.d.ts +58 -0
  130. package/dist/routes/order-runs.js +335 -0
  131. package/dist/routes/orders.d.ts +3 -0
  132. package/dist/routes/orders.js +262 -0
  133. package/dist/routes/root.d.ts +3 -0
  134. package/dist/routes/root.js +123 -0
  135. package/dist/routes/schemas.d.ts +3 -0
  136. package/dist/routes/schemas.js +31 -0
  137. package/dist/routes/step-field-attachments.d.ts +3 -0
  138. package/dist/routes/step-field-attachments.js +231 -0
  139. package/dist/routes/step-fields.d.ts +100 -0
  140. package/dist/routes/step-fields.js +315 -0
  141. package/dist/routes/step-run-fields.d.ts +3 -0
  142. package/dist/routes/step-run-fields.js +438 -0
  143. package/dist/routes/step-run-transitions.d.ts +3 -0
  144. package/dist/routes/step-run-transitions.js +113 -0
  145. package/dist/routes/step-runs.d.ts +332 -0
  146. package/dist/routes/step-runs.js +324 -0
  147. package/dist/routes/steps.d.ts +3 -0
  148. package/dist/routes/steps.js +283 -0
  149. package/dist/routes/user-permissions.d.ts +3 -0
  150. package/dist/routes/user-permissions.js +100 -0
  151. package/dist/routes/users.d.ts +57 -0
  152. package/dist/routes/users.js +381 -0
  153. package/dist/routes/work-centers.d.ts +3 -0
  154. package/dist/routes/work-centers.js +280 -0
  155. package/dist/schema-registry.d.ts +3 -0
  156. package/dist/schema-registry.js +45 -0
  157. package/dist/services/attachment-service.d.ts +33 -0
  158. package/dist/services/attachment-service.js +118 -0
  159. package/dist/services/field-ref-service.d.ts +96 -0
  160. package/dist/services/field-ref-service.js +74 -0
  161. package/dist/services/field-service.d.ts +49 -0
  162. package/dist/services/field-service.js +114 -0
  163. package/dist/services/field-value-service.d.ts +61 -0
  164. package/dist/services/field-value-service.js +256 -0
  165. package/dist/services/item-instance-service.d.ts +152 -0
  166. package/dist/services/item-instance-service.js +155 -0
  167. package/dist/services/item-service.d.ts +47 -0
  168. package/dist/services/item-service.js +56 -0
  169. package/dist/services/labor-ticket-service.d.ts +40 -0
  170. package/dist/services/labor-ticket-service.js +148 -0
  171. package/dist/services/log-file-service.d.ts +4 -0
  172. package/dist/services/log-file-service.js +11 -0
  173. package/dist/services/operation-dependency-service.d.ts +33 -0
  174. package/dist/services/operation-dependency-service.js +30 -0
  175. package/dist/services/operation-run-comment-service.d.ts +17 -0
  176. package/dist/services/operation-run-comment-service.js +26 -0
  177. package/dist/services/operation-run-service.d.ts +126 -0
  178. package/dist/services/operation-run-service.js +347 -0
  179. package/dist/services/operation-service.d.ts +47 -0
  180. package/dist/services/operation-service.js +132 -0
  181. package/dist/services/order-revision-service.d.ts +53 -0
  182. package/dist/services/order-revision-service.js +264 -0
  183. package/dist/services/order-run-service.d.ts +138 -0
  184. package/dist/services/order-run-service.js +356 -0
  185. package/dist/services/order-service.d.ts +15 -0
  186. package/dist/services/order-service.js +68 -0
  187. package/dist/services/revision-diff-service.d.ts +3 -0
  188. package/dist/services/revision-diff-service.js +194 -0
  189. package/dist/services/step-run-service.d.ts +172 -0
  190. package/dist/services/step-run-service.js +106 -0
  191. package/dist/services/step-service.d.ts +104 -0
  192. package/dist/services/step-service.js +89 -0
  193. package/dist/services/user-service.d.ts +185 -0
  194. package/dist/services/user-service.js +132 -0
  195. package/dist/services/work-center-service.d.ts +29 -0
  196. package/dist/services/work-center-service.js +106 -0
  197. package/dist/supervisorAuth.d.ts +3 -0
  198. package/dist/supervisorAuth.js +16 -0
  199. package/dist/userService.d.ts +20 -0
  200. package/dist/userService.js +118 -0
  201. package/package.json +69 -0
@@ -0,0 +1,1455 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Attachment
5
+ *
6
+ */
7
+ export type AttachmentModel = runtime.Types.Result.DefaultSelection<Prisma.$AttachmentPayload>;
8
+ export type AggregateAttachment = {
9
+ _count: AttachmentCountAggregateOutputType | null;
10
+ _avg: AttachmentAvgAggregateOutputType | null;
11
+ _sum: AttachmentSumAggregateOutputType | null;
12
+ _min: AttachmentMinAggregateOutputType | null;
13
+ _max: AttachmentMaxAggregateOutputType | null;
14
+ };
15
+ export type AttachmentAvgAggregateOutputType = {
16
+ id: number | null;
17
+ fileSize: number | null;
18
+ uploadedById: number | null;
19
+ };
20
+ export type AttachmentSumAggregateOutputType = {
21
+ id: number | null;
22
+ fileSize: number | null;
23
+ uploadedById: number | null;
24
+ };
25
+ export type AttachmentMinAggregateOutputType = {
26
+ id: number | null;
27
+ publicId: string | null;
28
+ filepath: string | null;
29
+ filename: string | null;
30
+ fileSize: number | null;
31
+ fileHash: string | null;
32
+ uploadedById: number | null;
33
+ createdAt: Date | null;
34
+ };
35
+ export type AttachmentMaxAggregateOutputType = {
36
+ id: number | null;
37
+ publicId: string | null;
38
+ filepath: string | null;
39
+ filename: string | null;
40
+ fileSize: number | null;
41
+ fileHash: string | null;
42
+ uploadedById: number | null;
43
+ createdAt: Date | null;
44
+ };
45
+ export type AttachmentCountAggregateOutputType = {
46
+ id: number;
47
+ publicId: number;
48
+ filepath: number;
49
+ filename: number;
50
+ fileSize: number;
51
+ fileHash: number;
52
+ uploadedById: number;
53
+ createdAt: number;
54
+ _all: number;
55
+ };
56
+ export type AttachmentAvgAggregateInputType = {
57
+ id?: true;
58
+ fileSize?: true;
59
+ uploadedById?: true;
60
+ };
61
+ export type AttachmentSumAggregateInputType = {
62
+ id?: true;
63
+ fileSize?: true;
64
+ uploadedById?: true;
65
+ };
66
+ export type AttachmentMinAggregateInputType = {
67
+ id?: true;
68
+ publicId?: true;
69
+ filepath?: true;
70
+ filename?: true;
71
+ fileSize?: true;
72
+ fileHash?: true;
73
+ uploadedById?: true;
74
+ createdAt?: true;
75
+ };
76
+ export type AttachmentMaxAggregateInputType = {
77
+ id?: true;
78
+ publicId?: true;
79
+ filepath?: true;
80
+ filename?: true;
81
+ fileSize?: true;
82
+ fileHash?: true;
83
+ uploadedById?: true;
84
+ createdAt?: true;
85
+ };
86
+ export type AttachmentCountAggregateInputType = {
87
+ id?: true;
88
+ publicId?: true;
89
+ filepath?: true;
90
+ filename?: true;
91
+ fileSize?: true;
92
+ fileHash?: true;
93
+ uploadedById?: true;
94
+ createdAt?: true;
95
+ _all?: true;
96
+ };
97
+ export type AttachmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
98
+ /**
99
+ * Filter which Attachment to aggregate.
100
+ */
101
+ where?: Prisma.AttachmentWhereInput;
102
+ /**
103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
104
+ *
105
+ * Determine the order of Attachments to fetch.
106
+ */
107
+ orderBy?: Prisma.AttachmentOrderByWithRelationInput | Prisma.AttachmentOrderByWithRelationInput[];
108
+ /**
109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
110
+ *
111
+ * Sets the start position
112
+ */
113
+ cursor?: Prisma.AttachmentWhereUniqueInput;
114
+ /**
115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
116
+ *
117
+ * Take `±n` Attachments from the position of the cursor.
118
+ */
119
+ take?: number;
120
+ /**
121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
122
+ *
123
+ * Skip the first `n` Attachments.
124
+ */
125
+ skip?: number;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
128
+ *
129
+ * Count returned Attachments
130
+ **/
131
+ _count?: true | AttachmentCountAggregateInputType;
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
134
+ *
135
+ * Select which fields to average
136
+ **/
137
+ _avg?: AttachmentAvgAggregateInputType;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
140
+ *
141
+ * Select which fields to sum
142
+ **/
143
+ _sum?: AttachmentSumAggregateInputType;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
146
+ *
147
+ * Select which fields to find the minimum value
148
+ **/
149
+ _min?: AttachmentMinAggregateInputType;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Select which fields to find the maximum value
154
+ **/
155
+ _max?: AttachmentMaxAggregateInputType;
156
+ };
157
+ export type GetAttachmentAggregateType<T extends AttachmentAggregateArgs> = {
158
+ [P in keyof T & keyof AggregateAttachment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateAttachment[P]> : Prisma.GetScalarType<T[P], AggregateAttachment[P]>;
159
+ };
160
+ export type AttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
161
+ where?: Prisma.AttachmentWhereInput;
162
+ orderBy?: Prisma.AttachmentOrderByWithAggregationInput | Prisma.AttachmentOrderByWithAggregationInput[];
163
+ by: Prisma.AttachmentScalarFieldEnum[] | Prisma.AttachmentScalarFieldEnum;
164
+ having?: Prisma.AttachmentScalarWhereWithAggregatesInput;
165
+ take?: number;
166
+ skip?: number;
167
+ _count?: AttachmentCountAggregateInputType | true;
168
+ _avg?: AttachmentAvgAggregateInputType;
169
+ _sum?: AttachmentSumAggregateInputType;
170
+ _min?: AttachmentMinAggregateInputType;
171
+ _max?: AttachmentMaxAggregateInputType;
172
+ };
173
+ export type AttachmentGroupByOutputType = {
174
+ id: number;
175
+ publicId: string;
176
+ filepath: string;
177
+ filename: string;
178
+ fileSize: number;
179
+ fileHash: string;
180
+ uploadedById: number;
181
+ createdAt: Date;
182
+ _count: AttachmentCountAggregateOutputType | null;
183
+ _avg: AttachmentAvgAggregateOutputType | null;
184
+ _sum: AttachmentSumAggregateOutputType | null;
185
+ _min: AttachmentMinAggregateOutputType | null;
186
+ _max: AttachmentMaxAggregateOutputType | null;
187
+ };
188
+ type GetAttachmentGroupByPayload<T extends AttachmentGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<AttachmentGroupByOutputType, T['by']> & {
189
+ [P in ((keyof T) & (keyof AttachmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], AttachmentGroupByOutputType[P]> : Prisma.GetScalarType<T[P], AttachmentGroupByOutputType[P]>;
190
+ }>>;
191
+ export type AttachmentWhereInput = {
192
+ AND?: Prisma.AttachmentWhereInput | Prisma.AttachmentWhereInput[];
193
+ OR?: Prisma.AttachmentWhereInput[];
194
+ NOT?: Prisma.AttachmentWhereInput | Prisma.AttachmentWhereInput[];
195
+ id?: Prisma.IntFilter<"Attachment"> | number;
196
+ publicId?: Prisma.StringFilter<"Attachment"> | string;
197
+ filepath?: Prisma.StringFilter<"Attachment"> | string;
198
+ filename?: Prisma.StringFilter<"Attachment"> | string;
199
+ fileSize?: Prisma.IntFilter<"Attachment"> | number;
200
+ fileHash?: Prisma.StringFilter<"Attachment"> | string;
201
+ uploadedById?: Prisma.IntFilter<"Attachment"> | number;
202
+ createdAt?: Prisma.DateTimeFilter<"Attachment"> | Date | string;
203
+ uploadedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
204
+ fieldAttachments?: Prisma.FieldAttachmentListRelationFilter;
205
+ };
206
+ export type AttachmentOrderByWithRelationInput = {
207
+ id?: Prisma.SortOrder;
208
+ publicId?: Prisma.SortOrder;
209
+ filepath?: Prisma.SortOrder;
210
+ filename?: Prisma.SortOrder;
211
+ fileSize?: Prisma.SortOrder;
212
+ fileHash?: Prisma.SortOrder;
213
+ uploadedById?: Prisma.SortOrder;
214
+ createdAt?: Prisma.SortOrder;
215
+ uploadedBy?: Prisma.UserOrderByWithRelationInput;
216
+ fieldAttachments?: Prisma.FieldAttachmentOrderByRelationAggregateInput;
217
+ };
218
+ export type AttachmentWhereUniqueInput = Prisma.AtLeast<{
219
+ id?: number;
220
+ publicId?: string;
221
+ AND?: Prisma.AttachmentWhereInput | Prisma.AttachmentWhereInput[];
222
+ OR?: Prisma.AttachmentWhereInput[];
223
+ NOT?: Prisma.AttachmentWhereInput | Prisma.AttachmentWhereInput[];
224
+ filepath?: Prisma.StringFilter<"Attachment"> | string;
225
+ filename?: Prisma.StringFilter<"Attachment"> | string;
226
+ fileSize?: Prisma.IntFilter<"Attachment"> | number;
227
+ fileHash?: Prisma.StringFilter<"Attachment"> | string;
228
+ uploadedById?: Prisma.IntFilter<"Attachment"> | number;
229
+ createdAt?: Prisma.DateTimeFilter<"Attachment"> | Date | string;
230
+ uploadedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
231
+ fieldAttachments?: Prisma.FieldAttachmentListRelationFilter;
232
+ }, "id" | "publicId">;
233
+ export type AttachmentOrderByWithAggregationInput = {
234
+ id?: Prisma.SortOrder;
235
+ publicId?: Prisma.SortOrder;
236
+ filepath?: Prisma.SortOrder;
237
+ filename?: Prisma.SortOrder;
238
+ fileSize?: Prisma.SortOrder;
239
+ fileHash?: Prisma.SortOrder;
240
+ uploadedById?: Prisma.SortOrder;
241
+ createdAt?: Prisma.SortOrder;
242
+ _count?: Prisma.AttachmentCountOrderByAggregateInput;
243
+ _avg?: Prisma.AttachmentAvgOrderByAggregateInput;
244
+ _max?: Prisma.AttachmentMaxOrderByAggregateInput;
245
+ _min?: Prisma.AttachmentMinOrderByAggregateInput;
246
+ _sum?: Prisma.AttachmentSumOrderByAggregateInput;
247
+ };
248
+ export type AttachmentScalarWhereWithAggregatesInput = {
249
+ AND?: Prisma.AttachmentScalarWhereWithAggregatesInput | Prisma.AttachmentScalarWhereWithAggregatesInput[];
250
+ OR?: Prisma.AttachmentScalarWhereWithAggregatesInput[];
251
+ NOT?: Prisma.AttachmentScalarWhereWithAggregatesInput | Prisma.AttachmentScalarWhereWithAggregatesInput[];
252
+ id?: Prisma.IntWithAggregatesFilter<"Attachment"> | number;
253
+ publicId?: Prisma.StringWithAggregatesFilter<"Attachment"> | string;
254
+ filepath?: Prisma.StringWithAggregatesFilter<"Attachment"> | string;
255
+ filename?: Prisma.StringWithAggregatesFilter<"Attachment"> | string;
256
+ fileSize?: Prisma.IntWithAggregatesFilter<"Attachment"> | number;
257
+ fileHash?: Prisma.StringWithAggregatesFilter<"Attachment"> | string;
258
+ uploadedById?: Prisma.IntWithAggregatesFilter<"Attachment"> | number;
259
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Attachment"> | Date | string;
260
+ };
261
+ export type AttachmentCreateInput = {
262
+ publicId: string;
263
+ filepath: string;
264
+ filename: string;
265
+ fileSize: number;
266
+ fileHash: string;
267
+ createdAt?: Date | string;
268
+ uploadedBy: Prisma.UserCreateNestedOneWithoutAttachmentsUploadedInput;
269
+ fieldAttachments?: Prisma.FieldAttachmentCreateNestedManyWithoutAttachmentInput;
270
+ };
271
+ export type AttachmentUncheckedCreateInput = {
272
+ id?: number;
273
+ publicId: string;
274
+ filepath: string;
275
+ filename: string;
276
+ fileSize: number;
277
+ fileHash: string;
278
+ uploadedById: number;
279
+ createdAt?: Date | string;
280
+ fieldAttachments?: Prisma.FieldAttachmentUncheckedCreateNestedManyWithoutAttachmentInput;
281
+ };
282
+ export type AttachmentUpdateInput = {
283
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
284
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
285
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
286
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
287
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
288
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
289
+ uploadedBy?: Prisma.UserUpdateOneRequiredWithoutAttachmentsUploadedNestedInput;
290
+ fieldAttachments?: Prisma.FieldAttachmentUpdateManyWithoutAttachmentNestedInput;
291
+ };
292
+ export type AttachmentUncheckedUpdateInput = {
293
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
294
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
295
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
296
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
297
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
298
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
299
+ uploadedById?: Prisma.IntFieldUpdateOperationsInput | number;
300
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
301
+ fieldAttachments?: Prisma.FieldAttachmentUncheckedUpdateManyWithoutAttachmentNestedInput;
302
+ };
303
+ export type AttachmentCreateManyInput = {
304
+ id?: number;
305
+ publicId: string;
306
+ filepath: string;
307
+ filename: string;
308
+ fileSize: number;
309
+ fileHash: string;
310
+ uploadedById: number;
311
+ createdAt?: Date | string;
312
+ };
313
+ export type AttachmentUpdateManyMutationInput = {
314
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
315
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
316
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
317
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
318
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
319
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
320
+ };
321
+ export type AttachmentUncheckedUpdateManyInput = {
322
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
323
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
324
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
327
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ uploadedById?: Prisma.IntFieldUpdateOperationsInput | number;
329
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
330
+ };
331
+ export type AttachmentListRelationFilter = {
332
+ every?: Prisma.AttachmentWhereInput;
333
+ some?: Prisma.AttachmentWhereInput;
334
+ none?: Prisma.AttachmentWhereInput;
335
+ };
336
+ export type AttachmentOrderByRelationAggregateInput = {
337
+ _count?: Prisma.SortOrder;
338
+ };
339
+ export type AttachmentCountOrderByAggregateInput = {
340
+ id?: Prisma.SortOrder;
341
+ publicId?: Prisma.SortOrder;
342
+ filepath?: Prisma.SortOrder;
343
+ filename?: Prisma.SortOrder;
344
+ fileSize?: Prisma.SortOrder;
345
+ fileHash?: Prisma.SortOrder;
346
+ uploadedById?: Prisma.SortOrder;
347
+ createdAt?: Prisma.SortOrder;
348
+ };
349
+ export type AttachmentAvgOrderByAggregateInput = {
350
+ id?: Prisma.SortOrder;
351
+ fileSize?: Prisma.SortOrder;
352
+ uploadedById?: Prisma.SortOrder;
353
+ };
354
+ export type AttachmentMaxOrderByAggregateInput = {
355
+ id?: Prisma.SortOrder;
356
+ publicId?: Prisma.SortOrder;
357
+ filepath?: Prisma.SortOrder;
358
+ filename?: Prisma.SortOrder;
359
+ fileSize?: Prisma.SortOrder;
360
+ fileHash?: Prisma.SortOrder;
361
+ uploadedById?: Prisma.SortOrder;
362
+ createdAt?: Prisma.SortOrder;
363
+ };
364
+ export type AttachmentMinOrderByAggregateInput = {
365
+ id?: Prisma.SortOrder;
366
+ publicId?: Prisma.SortOrder;
367
+ filepath?: Prisma.SortOrder;
368
+ filename?: Prisma.SortOrder;
369
+ fileSize?: Prisma.SortOrder;
370
+ fileHash?: Prisma.SortOrder;
371
+ uploadedById?: Prisma.SortOrder;
372
+ createdAt?: Prisma.SortOrder;
373
+ };
374
+ export type AttachmentSumOrderByAggregateInput = {
375
+ id?: Prisma.SortOrder;
376
+ fileSize?: Prisma.SortOrder;
377
+ uploadedById?: Prisma.SortOrder;
378
+ };
379
+ export type AttachmentScalarRelationFilter = {
380
+ is?: Prisma.AttachmentWhereInput;
381
+ isNot?: Prisma.AttachmentWhereInput;
382
+ };
383
+ export type AttachmentCreateNestedManyWithoutUploadedByInput = {
384
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput> | Prisma.AttachmentCreateWithoutUploadedByInput[] | Prisma.AttachmentUncheckedCreateWithoutUploadedByInput[];
385
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutUploadedByInput | Prisma.AttachmentCreateOrConnectWithoutUploadedByInput[];
386
+ createMany?: Prisma.AttachmentCreateManyUploadedByInputEnvelope;
387
+ connect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
388
+ };
389
+ export type AttachmentUncheckedCreateNestedManyWithoutUploadedByInput = {
390
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput> | Prisma.AttachmentCreateWithoutUploadedByInput[] | Prisma.AttachmentUncheckedCreateWithoutUploadedByInput[];
391
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutUploadedByInput | Prisma.AttachmentCreateOrConnectWithoutUploadedByInput[];
392
+ createMany?: Prisma.AttachmentCreateManyUploadedByInputEnvelope;
393
+ connect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
394
+ };
395
+ export type AttachmentUpdateManyWithoutUploadedByNestedInput = {
396
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput> | Prisma.AttachmentCreateWithoutUploadedByInput[] | Prisma.AttachmentUncheckedCreateWithoutUploadedByInput[];
397
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutUploadedByInput | Prisma.AttachmentCreateOrConnectWithoutUploadedByInput[];
398
+ upsert?: Prisma.AttachmentUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.AttachmentUpsertWithWhereUniqueWithoutUploadedByInput[];
399
+ createMany?: Prisma.AttachmentCreateManyUploadedByInputEnvelope;
400
+ set?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
401
+ disconnect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
402
+ delete?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
403
+ connect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
404
+ update?: Prisma.AttachmentUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.AttachmentUpdateWithWhereUniqueWithoutUploadedByInput[];
405
+ updateMany?: Prisma.AttachmentUpdateManyWithWhereWithoutUploadedByInput | Prisma.AttachmentUpdateManyWithWhereWithoutUploadedByInput[];
406
+ deleteMany?: Prisma.AttachmentScalarWhereInput | Prisma.AttachmentScalarWhereInput[];
407
+ };
408
+ export type AttachmentUncheckedUpdateManyWithoutUploadedByNestedInput = {
409
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput> | Prisma.AttachmentCreateWithoutUploadedByInput[] | Prisma.AttachmentUncheckedCreateWithoutUploadedByInput[];
410
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutUploadedByInput | Prisma.AttachmentCreateOrConnectWithoutUploadedByInput[];
411
+ upsert?: Prisma.AttachmentUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.AttachmentUpsertWithWhereUniqueWithoutUploadedByInput[];
412
+ createMany?: Prisma.AttachmentCreateManyUploadedByInputEnvelope;
413
+ set?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
414
+ disconnect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
415
+ delete?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
416
+ connect?: Prisma.AttachmentWhereUniqueInput | Prisma.AttachmentWhereUniqueInput[];
417
+ update?: Prisma.AttachmentUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.AttachmentUpdateWithWhereUniqueWithoutUploadedByInput[];
418
+ updateMany?: Prisma.AttachmentUpdateManyWithWhereWithoutUploadedByInput | Prisma.AttachmentUpdateManyWithWhereWithoutUploadedByInput[];
419
+ deleteMany?: Prisma.AttachmentScalarWhereInput | Prisma.AttachmentScalarWhereInput[];
420
+ };
421
+ export type AttachmentCreateNestedOneWithoutFieldAttachmentsInput = {
422
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedCreateWithoutFieldAttachmentsInput>;
423
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutFieldAttachmentsInput;
424
+ connect?: Prisma.AttachmentWhereUniqueInput;
425
+ };
426
+ export type AttachmentUpdateOneRequiredWithoutFieldAttachmentsNestedInput = {
427
+ create?: Prisma.XOR<Prisma.AttachmentCreateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedCreateWithoutFieldAttachmentsInput>;
428
+ connectOrCreate?: Prisma.AttachmentCreateOrConnectWithoutFieldAttachmentsInput;
429
+ upsert?: Prisma.AttachmentUpsertWithoutFieldAttachmentsInput;
430
+ connect?: Prisma.AttachmentWhereUniqueInput;
431
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AttachmentUpdateToOneWithWhereWithoutFieldAttachmentsInput, Prisma.AttachmentUpdateWithoutFieldAttachmentsInput>, Prisma.AttachmentUncheckedUpdateWithoutFieldAttachmentsInput>;
432
+ };
433
+ export type AttachmentCreateWithoutUploadedByInput = {
434
+ publicId: string;
435
+ filepath: string;
436
+ filename: string;
437
+ fileSize: number;
438
+ fileHash: string;
439
+ createdAt?: Date | string;
440
+ fieldAttachments?: Prisma.FieldAttachmentCreateNestedManyWithoutAttachmentInput;
441
+ };
442
+ export type AttachmentUncheckedCreateWithoutUploadedByInput = {
443
+ id?: number;
444
+ publicId: string;
445
+ filepath: string;
446
+ filename: string;
447
+ fileSize: number;
448
+ fileHash: string;
449
+ createdAt?: Date | string;
450
+ fieldAttachments?: Prisma.FieldAttachmentUncheckedCreateNestedManyWithoutAttachmentInput;
451
+ };
452
+ export type AttachmentCreateOrConnectWithoutUploadedByInput = {
453
+ where: Prisma.AttachmentWhereUniqueInput;
454
+ create: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput>;
455
+ };
456
+ export type AttachmentCreateManyUploadedByInputEnvelope = {
457
+ data: Prisma.AttachmentCreateManyUploadedByInput | Prisma.AttachmentCreateManyUploadedByInput[];
458
+ };
459
+ export type AttachmentUpsertWithWhereUniqueWithoutUploadedByInput = {
460
+ where: Prisma.AttachmentWhereUniqueInput;
461
+ update: Prisma.XOR<Prisma.AttachmentUpdateWithoutUploadedByInput, Prisma.AttachmentUncheckedUpdateWithoutUploadedByInput>;
462
+ create: Prisma.XOR<Prisma.AttachmentCreateWithoutUploadedByInput, Prisma.AttachmentUncheckedCreateWithoutUploadedByInput>;
463
+ };
464
+ export type AttachmentUpdateWithWhereUniqueWithoutUploadedByInput = {
465
+ where: Prisma.AttachmentWhereUniqueInput;
466
+ data: Prisma.XOR<Prisma.AttachmentUpdateWithoutUploadedByInput, Prisma.AttachmentUncheckedUpdateWithoutUploadedByInput>;
467
+ };
468
+ export type AttachmentUpdateManyWithWhereWithoutUploadedByInput = {
469
+ where: Prisma.AttachmentScalarWhereInput;
470
+ data: Prisma.XOR<Prisma.AttachmentUpdateManyMutationInput, Prisma.AttachmentUncheckedUpdateManyWithoutUploadedByInput>;
471
+ };
472
+ export type AttachmentScalarWhereInput = {
473
+ AND?: Prisma.AttachmentScalarWhereInput | Prisma.AttachmentScalarWhereInput[];
474
+ OR?: Prisma.AttachmentScalarWhereInput[];
475
+ NOT?: Prisma.AttachmentScalarWhereInput | Prisma.AttachmentScalarWhereInput[];
476
+ id?: Prisma.IntFilter<"Attachment"> | number;
477
+ publicId?: Prisma.StringFilter<"Attachment"> | string;
478
+ filepath?: Prisma.StringFilter<"Attachment"> | string;
479
+ filename?: Prisma.StringFilter<"Attachment"> | string;
480
+ fileSize?: Prisma.IntFilter<"Attachment"> | number;
481
+ fileHash?: Prisma.StringFilter<"Attachment"> | string;
482
+ uploadedById?: Prisma.IntFilter<"Attachment"> | number;
483
+ createdAt?: Prisma.DateTimeFilter<"Attachment"> | Date | string;
484
+ };
485
+ export type AttachmentCreateWithoutFieldAttachmentsInput = {
486
+ publicId: string;
487
+ filepath: string;
488
+ filename: string;
489
+ fileSize: number;
490
+ fileHash: string;
491
+ createdAt?: Date | string;
492
+ uploadedBy: Prisma.UserCreateNestedOneWithoutAttachmentsUploadedInput;
493
+ };
494
+ export type AttachmentUncheckedCreateWithoutFieldAttachmentsInput = {
495
+ id?: number;
496
+ publicId: string;
497
+ filepath: string;
498
+ filename: string;
499
+ fileSize: number;
500
+ fileHash: string;
501
+ uploadedById: number;
502
+ createdAt?: Date | string;
503
+ };
504
+ export type AttachmentCreateOrConnectWithoutFieldAttachmentsInput = {
505
+ where: Prisma.AttachmentWhereUniqueInput;
506
+ create: Prisma.XOR<Prisma.AttachmentCreateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedCreateWithoutFieldAttachmentsInput>;
507
+ };
508
+ export type AttachmentUpsertWithoutFieldAttachmentsInput = {
509
+ update: Prisma.XOR<Prisma.AttachmentUpdateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedUpdateWithoutFieldAttachmentsInput>;
510
+ create: Prisma.XOR<Prisma.AttachmentCreateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedCreateWithoutFieldAttachmentsInput>;
511
+ where?: Prisma.AttachmentWhereInput;
512
+ };
513
+ export type AttachmentUpdateToOneWithWhereWithoutFieldAttachmentsInput = {
514
+ where?: Prisma.AttachmentWhereInput;
515
+ data: Prisma.XOR<Prisma.AttachmentUpdateWithoutFieldAttachmentsInput, Prisma.AttachmentUncheckedUpdateWithoutFieldAttachmentsInput>;
516
+ };
517
+ export type AttachmentUpdateWithoutFieldAttachmentsInput = {
518
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
519
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
520
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
521
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
522
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
523
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
524
+ uploadedBy?: Prisma.UserUpdateOneRequiredWithoutAttachmentsUploadedNestedInput;
525
+ };
526
+ export type AttachmentUncheckedUpdateWithoutFieldAttachmentsInput = {
527
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
528
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
529
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
530
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
531
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
532
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
533
+ uploadedById?: Prisma.IntFieldUpdateOperationsInput | number;
534
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
535
+ };
536
+ export type AttachmentCreateManyUploadedByInput = {
537
+ id?: number;
538
+ publicId: string;
539
+ filepath: string;
540
+ filename: string;
541
+ fileSize: number;
542
+ fileHash: string;
543
+ createdAt?: Date | string;
544
+ };
545
+ export type AttachmentUpdateWithoutUploadedByInput = {
546
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
547
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
548
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
549
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
550
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
551
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
552
+ fieldAttachments?: Prisma.FieldAttachmentUpdateManyWithoutAttachmentNestedInput;
553
+ };
554
+ export type AttachmentUncheckedUpdateWithoutUploadedByInput = {
555
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
556
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
557
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
558
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
559
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
560
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
561
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
562
+ fieldAttachments?: Prisma.FieldAttachmentUncheckedUpdateManyWithoutAttachmentNestedInput;
563
+ };
564
+ export type AttachmentUncheckedUpdateManyWithoutUploadedByInput = {
565
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
566
+ publicId?: Prisma.StringFieldUpdateOperationsInput | string;
567
+ filepath?: Prisma.StringFieldUpdateOperationsInput | string;
568
+ filename?: Prisma.StringFieldUpdateOperationsInput | string;
569
+ fileSize?: Prisma.IntFieldUpdateOperationsInput | number;
570
+ fileHash?: Prisma.StringFieldUpdateOperationsInput | string;
571
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
572
+ };
573
+ /**
574
+ * Count Type AttachmentCountOutputType
575
+ */
576
+ export type AttachmentCountOutputType = {
577
+ fieldAttachments: number;
578
+ };
579
+ export type AttachmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
580
+ fieldAttachments?: boolean | AttachmentCountOutputTypeCountFieldAttachmentsArgs;
581
+ };
582
+ /**
583
+ * AttachmentCountOutputType without action
584
+ */
585
+ export type AttachmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
586
+ /**
587
+ * Select specific fields to fetch from the AttachmentCountOutputType
588
+ */
589
+ select?: Prisma.AttachmentCountOutputTypeSelect<ExtArgs> | null;
590
+ };
591
+ /**
592
+ * AttachmentCountOutputType without action
593
+ */
594
+ export type AttachmentCountOutputTypeCountFieldAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
595
+ where?: Prisma.FieldAttachmentWhereInput;
596
+ };
597
+ export type AttachmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
598
+ id?: boolean;
599
+ publicId?: boolean;
600
+ filepath?: boolean;
601
+ filename?: boolean;
602
+ fileSize?: boolean;
603
+ fileHash?: boolean;
604
+ uploadedById?: boolean;
605
+ createdAt?: boolean;
606
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
607
+ fieldAttachments?: boolean | Prisma.Attachment$fieldAttachmentsArgs<ExtArgs>;
608
+ _count?: boolean | Prisma.AttachmentCountOutputTypeDefaultArgs<ExtArgs>;
609
+ }, ExtArgs["result"]["attachment"]>;
610
+ export type AttachmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
611
+ id?: boolean;
612
+ publicId?: boolean;
613
+ filepath?: boolean;
614
+ filename?: boolean;
615
+ fileSize?: boolean;
616
+ fileHash?: boolean;
617
+ uploadedById?: boolean;
618
+ createdAt?: boolean;
619
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
620
+ }, ExtArgs["result"]["attachment"]>;
621
+ export type AttachmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
622
+ id?: boolean;
623
+ publicId?: boolean;
624
+ filepath?: boolean;
625
+ filename?: boolean;
626
+ fileSize?: boolean;
627
+ fileHash?: boolean;
628
+ uploadedById?: boolean;
629
+ createdAt?: boolean;
630
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
631
+ }, ExtArgs["result"]["attachment"]>;
632
+ export type AttachmentSelectScalar = {
633
+ id?: boolean;
634
+ publicId?: boolean;
635
+ filepath?: boolean;
636
+ filename?: boolean;
637
+ fileSize?: boolean;
638
+ fileHash?: boolean;
639
+ uploadedById?: boolean;
640
+ createdAt?: boolean;
641
+ };
642
+ export type AttachmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "publicId" | "filepath" | "filename" | "fileSize" | "fileHash" | "uploadedById" | "createdAt", ExtArgs["result"]["attachment"]>;
643
+ export type AttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
644
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
645
+ fieldAttachments?: boolean | Prisma.Attachment$fieldAttachmentsArgs<ExtArgs>;
646
+ _count?: boolean | Prisma.AttachmentCountOutputTypeDefaultArgs<ExtArgs>;
647
+ };
648
+ export type AttachmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
649
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
650
+ };
651
+ export type AttachmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
652
+ uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
653
+ };
654
+ export type $AttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
655
+ name: "Attachment";
656
+ objects: {
657
+ uploadedBy: Prisma.$UserPayload<ExtArgs>;
658
+ fieldAttachments: Prisma.$FieldAttachmentPayload<ExtArgs>[];
659
+ };
660
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
661
+ id: number;
662
+ publicId: string;
663
+ filepath: string;
664
+ filename: string;
665
+ fileSize: number;
666
+ fileHash: string;
667
+ uploadedById: number;
668
+ createdAt: Date;
669
+ }, ExtArgs["result"]["attachment"]>;
670
+ composites: {};
671
+ };
672
+ export type AttachmentGetPayload<S extends boolean | null | undefined | AttachmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AttachmentPayload, S>;
673
+ export type AttachmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<AttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
674
+ select?: AttachmentCountAggregateInputType | true;
675
+ };
676
+ export interface AttachmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
677
+ [K: symbol]: {
678
+ types: Prisma.TypeMap<ExtArgs>['model']['Attachment'];
679
+ meta: {
680
+ name: 'Attachment';
681
+ };
682
+ };
683
+ /**
684
+ * Find zero or one Attachment that matches the filter.
685
+ * @param {AttachmentFindUniqueArgs} args - Arguments to find a Attachment
686
+ * @example
687
+ * // Get one Attachment
688
+ * const attachment = await prisma.attachment.findUnique({
689
+ * where: {
690
+ * // ... provide filter here
691
+ * }
692
+ * })
693
+ */
694
+ findUnique<T extends AttachmentFindUniqueArgs>(args: Prisma.SelectSubset<T, AttachmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
695
+ /**
696
+ * Find one Attachment that matches the filter or throw an error with `error.code='P2025'`
697
+ * if no matches were found.
698
+ * @param {AttachmentFindUniqueOrThrowArgs} args - Arguments to find a Attachment
699
+ * @example
700
+ * // Get one Attachment
701
+ * const attachment = await prisma.attachment.findUniqueOrThrow({
702
+ * where: {
703
+ * // ... provide filter here
704
+ * }
705
+ * })
706
+ */
707
+ findUniqueOrThrow<T extends AttachmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
708
+ /**
709
+ * Find the first Attachment that matches the filter.
710
+ * Note, that providing `undefined` is treated as the value not being there.
711
+ * Read more here: https://pris.ly/d/null-undefined
712
+ * @param {AttachmentFindFirstArgs} args - Arguments to find a Attachment
713
+ * @example
714
+ * // Get one Attachment
715
+ * const attachment = await prisma.attachment.findFirst({
716
+ * where: {
717
+ * // ... provide filter here
718
+ * }
719
+ * })
720
+ */
721
+ findFirst<T extends AttachmentFindFirstArgs>(args?: Prisma.SelectSubset<T, AttachmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
722
+ /**
723
+ * Find the first Attachment that matches the filter or
724
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
725
+ * Note, that providing `undefined` is treated as the value not being there.
726
+ * Read more here: https://pris.ly/d/null-undefined
727
+ * @param {AttachmentFindFirstOrThrowArgs} args - Arguments to find a Attachment
728
+ * @example
729
+ * // Get one Attachment
730
+ * const attachment = await prisma.attachment.findFirstOrThrow({
731
+ * where: {
732
+ * // ... provide filter here
733
+ * }
734
+ * })
735
+ */
736
+ findFirstOrThrow<T extends AttachmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
737
+ /**
738
+ * Find zero or more Attachments that matches the filter.
739
+ * Note, that providing `undefined` is treated as the value not being there.
740
+ * Read more here: https://pris.ly/d/null-undefined
741
+ * @param {AttachmentFindManyArgs} args - Arguments to filter and select certain fields only.
742
+ * @example
743
+ * // Get all Attachments
744
+ * const attachments = await prisma.attachment.findMany()
745
+ *
746
+ * // Get first 10 Attachments
747
+ * const attachments = await prisma.attachment.findMany({ take: 10 })
748
+ *
749
+ * // Only select the `id`
750
+ * const attachmentWithIdOnly = await prisma.attachment.findMany({ select: { id: true } })
751
+ *
752
+ */
753
+ findMany<T extends AttachmentFindManyArgs>(args?: Prisma.SelectSubset<T, AttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
754
+ /**
755
+ * Create a Attachment.
756
+ * @param {AttachmentCreateArgs} args - Arguments to create a Attachment.
757
+ * @example
758
+ * // Create one Attachment
759
+ * const Attachment = await prisma.attachment.create({
760
+ * data: {
761
+ * // ... data to create a Attachment
762
+ * }
763
+ * })
764
+ *
765
+ */
766
+ create<T extends AttachmentCreateArgs>(args: Prisma.SelectSubset<T, AttachmentCreateArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
767
+ /**
768
+ * Create many Attachments.
769
+ * @param {AttachmentCreateManyArgs} args - Arguments to create many Attachments.
770
+ * @example
771
+ * // Create many Attachments
772
+ * const attachment = await prisma.attachment.createMany({
773
+ * data: [
774
+ * // ... provide data here
775
+ * ]
776
+ * })
777
+ *
778
+ */
779
+ createMany<T extends AttachmentCreateManyArgs>(args?: Prisma.SelectSubset<T, AttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
780
+ /**
781
+ * Create many Attachments and returns the data saved in the database.
782
+ * @param {AttachmentCreateManyAndReturnArgs} args - Arguments to create many Attachments.
783
+ * @example
784
+ * // Create many Attachments
785
+ * const attachment = await prisma.attachment.createManyAndReturn({
786
+ * data: [
787
+ * // ... provide data here
788
+ * ]
789
+ * })
790
+ *
791
+ * // Create many Attachments and only return the `id`
792
+ * const attachmentWithIdOnly = await prisma.attachment.createManyAndReturn({
793
+ * select: { id: true },
794
+ * data: [
795
+ * // ... provide data here
796
+ * ]
797
+ * })
798
+ * Note, that providing `undefined` is treated as the value not being there.
799
+ * Read more here: https://pris.ly/d/null-undefined
800
+ *
801
+ */
802
+ createManyAndReturn<T extends AttachmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
803
+ /**
804
+ * Delete a Attachment.
805
+ * @param {AttachmentDeleteArgs} args - Arguments to delete one Attachment.
806
+ * @example
807
+ * // Delete one Attachment
808
+ * const Attachment = await prisma.attachment.delete({
809
+ * where: {
810
+ * // ... filter to delete one Attachment
811
+ * }
812
+ * })
813
+ *
814
+ */
815
+ delete<T extends AttachmentDeleteArgs>(args: Prisma.SelectSubset<T, AttachmentDeleteArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
816
+ /**
817
+ * Update one Attachment.
818
+ * @param {AttachmentUpdateArgs} args - Arguments to update one Attachment.
819
+ * @example
820
+ * // Update one Attachment
821
+ * const attachment = await prisma.attachment.update({
822
+ * where: {
823
+ * // ... provide filter here
824
+ * },
825
+ * data: {
826
+ * // ... provide data here
827
+ * }
828
+ * })
829
+ *
830
+ */
831
+ update<T extends AttachmentUpdateArgs>(args: Prisma.SelectSubset<T, AttachmentUpdateArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
832
+ /**
833
+ * Delete zero or more Attachments.
834
+ * @param {AttachmentDeleteManyArgs} args - Arguments to filter Attachments to delete.
835
+ * @example
836
+ * // Delete a few Attachments
837
+ * const { count } = await prisma.attachment.deleteMany({
838
+ * where: {
839
+ * // ... provide filter here
840
+ * }
841
+ * })
842
+ *
843
+ */
844
+ deleteMany<T extends AttachmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
845
+ /**
846
+ * Update zero or more Attachments.
847
+ * Note, that providing `undefined` is treated as the value not being there.
848
+ * Read more here: https://pris.ly/d/null-undefined
849
+ * @param {AttachmentUpdateManyArgs} args - Arguments to update one or more rows.
850
+ * @example
851
+ * // Update many Attachments
852
+ * const attachment = await prisma.attachment.updateMany({
853
+ * where: {
854
+ * // ... provide filter here
855
+ * },
856
+ * data: {
857
+ * // ... provide data here
858
+ * }
859
+ * })
860
+ *
861
+ */
862
+ updateMany<T extends AttachmentUpdateManyArgs>(args: Prisma.SelectSubset<T, AttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
863
+ /**
864
+ * Update zero or more Attachments and returns the data updated in the database.
865
+ * @param {AttachmentUpdateManyAndReturnArgs} args - Arguments to update many Attachments.
866
+ * @example
867
+ * // Update many Attachments
868
+ * const attachment = await prisma.attachment.updateManyAndReturn({
869
+ * where: {
870
+ * // ... provide filter here
871
+ * },
872
+ * data: [
873
+ * // ... provide data here
874
+ * ]
875
+ * })
876
+ *
877
+ * // Update zero or more Attachments and only return the `id`
878
+ * const attachmentWithIdOnly = await prisma.attachment.updateManyAndReturn({
879
+ * select: { id: true },
880
+ * where: {
881
+ * // ... provide filter here
882
+ * },
883
+ * data: [
884
+ * // ... provide data here
885
+ * ]
886
+ * })
887
+ * Note, that providing `undefined` is treated as the value not being there.
888
+ * Read more here: https://pris.ly/d/null-undefined
889
+ *
890
+ */
891
+ updateManyAndReturn<T extends AttachmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
892
+ /**
893
+ * Create or update one Attachment.
894
+ * @param {AttachmentUpsertArgs} args - Arguments to update or create a Attachment.
895
+ * @example
896
+ * // Update or create a Attachment
897
+ * const attachment = await prisma.attachment.upsert({
898
+ * create: {
899
+ * // ... data to create a Attachment
900
+ * },
901
+ * update: {
902
+ * // ... in case it already exists, update
903
+ * },
904
+ * where: {
905
+ * // ... the filter for the Attachment we want to update
906
+ * }
907
+ * })
908
+ */
909
+ upsert<T extends AttachmentUpsertArgs>(args: Prisma.SelectSubset<T, AttachmentUpsertArgs<ExtArgs>>): Prisma.Prisma__AttachmentClient<runtime.Types.Result.GetResult<Prisma.$AttachmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
910
+ /**
911
+ * Count the number of Attachments.
912
+ * Note, that providing `undefined` is treated as the value not being there.
913
+ * Read more here: https://pris.ly/d/null-undefined
914
+ * @param {AttachmentCountArgs} args - Arguments to filter Attachments to count.
915
+ * @example
916
+ * // Count the number of Attachments
917
+ * const count = await prisma.attachment.count({
918
+ * where: {
919
+ * // ... the filter for the Attachments we want to count
920
+ * }
921
+ * })
922
+ **/
923
+ count<T extends AttachmentCountArgs>(args?: Prisma.Subset<T, AttachmentCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], AttachmentCountAggregateOutputType> : number>;
924
+ /**
925
+ * Allows you to perform aggregations operations on a Attachment.
926
+ * Note, that providing `undefined` is treated as the value not being there.
927
+ * Read more here: https://pris.ly/d/null-undefined
928
+ * @param {AttachmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
929
+ * @example
930
+ * // Ordered by age ascending
931
+ * // Where email contains prisma.io
932
+ * // Limited to the 10 users
933
+ * const aggregations = await prisma.user.aggregate({
934
+ * _avg: {
935
+ * age: true,
936
+ * },
937
+ * where: {
938
+ * email: {
939
+ * contains: "prisma.io",
940
+ * },
941
+ * },
942
+ * orderBy: {
943
+ * age: "asc",
944
+ * },
945
+ * take: 10,
946
+ * })
947
+ **/
948
+ aggregate<T extends AttachmentAggregateArgs>(args: Prisma.Subset<T, AttachmentAggregateArgs>): Prisma.PrismaPromise<GetAttachmentAggregateType<T>>;
949
+ /**
950
+ * Group by Attachment.
951
+ * Note, that providing `undefined` is treated as the value not being there.
952
+ * Read more here: https://pris.ly/d/null-undefined
953
+ * @param {AttachmentGroupByArgs} args - Group by arguments.
954
+ * @example
955
+ * // Group by city, order by createdAt, get count
956
+ * const result = await prisma.user.groupBy({
957
+ * by: ['city', 'createdAt'],
958
+ * orderBy: {
959
+ * createdAt: true
960
+ * },
961
+ * _count: {
962
+ * _all: true
963
+ * },
964
+ * })
965
+ *
966
+ **/
967
+ groupBy<T extends AttachmentGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
968
+ orderBy: AttachmentGroupByArgs['orderBy'];
969
+ } : {
970
+ orderBy?: AttachmentGroupByArgs['orderBy'];
971
+ }, 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 ? {
972
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
973
+ Error,
974
+ 'Field ',
975
+ P,
976
+ ` in "having" needs to be provided in "by"`
977
+ ];
978
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
979
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
980
+ }[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 ? {} : {
981
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
982
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
983
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
984
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, AttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
985
+ /**
986
+ * Fields of the Attachment model
987
+ */
988
+ readonly fields: AttachmentFieldRefs;
989
+ }
990
+ /**
991
+ * The delegate class that acts as a "Promise-like" for Attachment.
992
+ * Why is this prefixed with `Prisma__`?
993
+ * Because we want to prevent naming conflicts as mentioned in
994
+ * https://github.com/prisma/prisma-client-js/issues/707
995
+ */
996
+ export interface Prisma__AttachmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
997
+ readonly [Symbol.toStringTag]: "PrismaPromise";
998
+ uploadedBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
999
+ fieldAttachments<T extends Prisma.Attachment$fieldAttachmentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Attachment$fieldAttachmentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FieldAttachmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
1000
+ /**
1001
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1002
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1003
+ * @param onrejected The callback to execute when the Promise is rejected.
1004
+ * @returns A Promise for the completion of which ever callback is executed.
1005
+ */
1006
+ 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>;
1007
+ /**
1008
+ * Attaches a callback for only the rejection of the Promise.
1009
+ * @param onrejected The callback to execute when the Promise is rejected.
1010
+ * @returns A Promise for the completion of the callback.
1011
+ */
1012
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
1013
+ /**
1014
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1015
+ * resolved value cannot be modified from the callback.
1016
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1017
+ * @returns A Promise for the completion of the callback.
1018
+ */
1019
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
1020
+ }
1021
+ /**
1022
+ * Fields of the Attachment model
1023
+ */
1024
+ export interface AttachmentFieldRefs {
1025
+ readonly id: Prisma.FieldRef<"Attachment", 'Int'>;
1026
+ readonly publicId: Prisma.FieldRef<"Attachment", 'String'>;
1027
+ readonly filepath: Prisma.FieldRef<"Attachment", 'String'>;
1028
+ readonly filename: Prisma.FieldRef<"Attachment", 'String'>;
1029
+ readonly fileSize: Prisma.FieldRef<"Attachment", 'Int'>;
1030
+ readonly fileHash: Prisma.FieldRef<"Attachment", 'String'>;
1031
+ readonly uploadedById: Prisma.FieldRef<"Attachment", 'Int'>;
1032
+ readonly createdAt: Prisma.FieldRef<"Attachment", 'DateTime'>;
1033
+ }
1034
+ /**
1035
+ * Attachment findUnique
1036
+ */
1037
+ export type AttachmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1038
+ /**
1039
+ * Select specific fields to fetch from the Attachment
1040
+ */
1041
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1042
+ /**
1043
+ * Omit specific fields from the Attachment
1044
+ */
1045
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1046
+ /**
1047
+ * Choose, which related nodes to fetch as well
1048
+ */
1049
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1050
+ /**
1051
+ * Filter, which Attachment to fetch.
1052
+ */
1053
+ where: Prisma.AttachmentWhereUniqueInput;
1054
+ };
1055
+ /**
1056
+ * Attachment findUniqueOrThrow
1057
+ */
1058
+ export type AttachmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1059
+ /**
1060
+ * Select specific fields to fetch from the Attachment
1061
+ */
1062
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1063
+ /**
1064
+ * Omit specific fields from the Attachment
1065
+ */
1066
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1067
+ /**
1068
+ * Choose, which related nodes to fetch as well
1069
+ */
1070
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1071
+ /**
1072
+ * Filter, which Attachment to fetch.
1073
+ */
1074
+ where: Prisma.AttachmentWhereUniqueInput;
1075
+ };
1076
+ /**
1077
+ * Attachment findFirst
1078
+ */
1079
+ export type AttachmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1080
+ /**
1081
+ * Select specific fields to fetch from the Attachment
1082
+ */
1083
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1084
+ /**
1085
+ * Omit specific fields from the Attachment
1086
+ */
1087
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1088
+ /**
1089
+ * Choose, which related nodes to fetch as well
1090
+ */
1091
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1092
+ /**
1093
+ * Filter, which Attachment to fetch.
1094
+ */
1095
+ where?: Prisma.AttachmentWhereInput;
1096
+ /**
1097
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1098
+ *
1099
+ * Determine the order of Attachments to fetch.
1100
+ */
1101
+ orderBy?: Prisma.AttachmentOrderByWithRelationInput | Prisma.AttachmentOrderByWithRelationInput[];
1102
+ /**
1103
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1104
+ *
1105
+ * Sets the position for searching for Attachments.
1106
+ */
1107
+ cursor?: Prisma.AttachmentWhereUniqueInput;
1108
+ /**
1109
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1110
+ *
1111
+ * Take `±n` Attachments from the position of the cursor.
1112
+ */
1113
+ take?: number;
1114
+ /**
1115
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1116
+ *
1117
+ * Skip the first `n` Attachments.
1118
+ */
1119
+ skip?: number;
1120
+ /**
1121
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1122
+ *
1123
+ * Filter by unique combinations of Attachments.
1124
+ */
1125
+ distinct?: Prisma.AttachmentScalarFieldEnum | Prisma.AttachmentScalarFieldEnum[];
1126
+ };
1127
+ /**
1128
+ * Attachment findFirstOrThrow
1129
+ */
1130
+ export type AttachmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the Attachment
1133
+ */
1134
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1135
+ /**
1136
+ * Omit specific fields from the Attachment
1137
+ */
1138
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1139
+ /**
1140
+ * Choose, which related nodes to fetch as well
1141
+ */
1142
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1143
+ /**
1144
+ * Filter, which Attachment to fetch.
1145
+ */
1146
+ where?: Prisma.AttachmentWhereInput;
1147
+ /**
1148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1149
+ *
1150
+ * Determine the order of Attachments to fetch.
1151
+ */
1152
+ orderBy?: Prisma.AttachmentOrderByWithRelationInput | Prisma.AttachmentOrderByWithRelationInput[];
1153
+ /**
1154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1155
+ *
1156
+ * Sets the position for searching for Attachments.
1157
+ */
1158
+ cursor?: Prisma.AttachmentWhereUniqueInput;
1159
+ /**
1160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1161
+ *
1162
+ * Take `±n` Attachments from the position of the cursor.
1163
+ */
1164
+ take?: number;
1165
+ /**
1166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1167
+ *
1168
+ * Skip the first `n` Attachments.
1169
+ */
1170
+ skip?: number;
1171
+ /**
1172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1173
+ *
1174
+ * Filter by unique combinations of Attachments.
1175
+ */
1176
+ distinct?: Prisma.AttachmentScalarFieldEnum | Prisma.AttachmentScalarFieldEnum[];
1177
+ };
1178
+ /**
1179
+ * Attachment findMany
1180
+ */
1181
+ export type AttachmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1182
+ /**
1183
+ * Select specific fields to fetch from the Attachment
1184
+ */
1185
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1186
+ /**
1187
+ * Omit specific fields from the Attachment
1188
+ */
1189
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1190
+ /**
1191
+ * Choose, which related nodes to fetch as well
1192
+ */
1193
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1194
+ /**
1195
+ * Filter, which Attachments to fetch.
1196
+ */
1197
+ where?: Prisma.AttachmentWhereInput;
1198
+ /**
1199
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1200
+ *
1201
+ * Determine the order of Attachments to fetch.
1202
+ */
1203
+ orderBy?: Prisma.AttachmentOrderByWithRelationInput | Prisma.AttachmentOrderByWithRelationInput[];
1204
+ /**
1205
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1206
+ *
1207
+ * Sets the position for listing Attachments.
1208
+ */
1209
+ cursor?: Prisma.AttachmentWhereUniqueInput;
1210
+ /**
1211
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1212
+ *
1213
+ * Take `±n` Attachments from the position of the cursor.
1214
+ */
1215
+ take?: number;
1216
+ /**
1217
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1218
+ *
1219
+ * Skip the first `n` Attachments.
1220
+ */
1221
+ skip?: number;
1222
+ /**
1223
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1224
+ *
1225
+ * Filter by unique combinations of Attachments.
1226
+ */
1227
+ distinct?: Prisma.AttachmentScalarFieldEnum | Prisma.AttachmentScalarFieldEnum[];
1228
+ };
1229
+ /**
1230
+ * Attachment create
1231
+ */
1232
+ export type AttachmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1233
+ /**
1234
+ * Select specific fields to fetch from the Attachment
1235
+ */
1236
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1237
+ /**
1238
+ * Omit specific fields from the Attachment
1239
+ */
1240
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1241
+ /**
1242
+ * Choose, which related nodes to fetch as well
1243
+ */
1244
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1245
+ /**
1246
+ * The data needed to create a Attachment.
1247
+ */
1248
+ data: Prisma.XOR<Prisma.AttachmentCreateInput, Prisma.AttachmentUncheckedCreateInput>;
1249
+ };
1250
+ /**
1251
+ * Attachment createMany
1252
+ */
1253
+ export type AttachmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1254
+ /**
1255
+ * The data used to create many Attachments.
1256
+ */
1257
+ data: Prisma.AttachmentCreateManyInput | Prisma.AttachmentCreateManyInput[];
1258
+ };
1259
+ /**
1260
+ * Attachment createManyAndReturn
1261
+ */
1262
+ export type AttachmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1263
+ /**
1264
+ * Select specific fields to fetch from the Attachment
1265
+ */
1266
+ select?: Prisma.AttachmentSelectCreateManyAndReturn<ExtArgs> | null;
1267
+ /**
1268
+ * Omit specific fields from the Attachment
1269
+ */
1270
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1271
+ /**
1272
+ * The data used to create many Attachments.
1273
+ */
1274
+ data: Prisma.AttachmentCreateManyInput | Prisma.AttachmentCreateManyInput[];
1275
+ /**
1276
+ * Choose, which related nodes to fetch as well
1277
+ */
1278
+ include?: Prisma.AttachmentIncludeCreateManyAndReturn<ExtArgs> | null;
1279
+ };
1280
+ /**
1281
+ * Attachment update
1282
+ */
1283
+ export type AttachmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the Attachment
1286
+ */
1287
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1288
+ /**
1289
+ * Omit specific fields from the Attachment
1290
+ */
1291
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1296
+ /**
1297
+ * The data needed to update a Attachment.
1298
+ */
1299
+ data: Prisma.XOR<Prisma.AttachmentUpdateInput, Prisma.AttachmentUncheckedUpdateInput>;
1300
+ /**
1301
+ * Choose, which Attachment to update.
1302
+ */
1303
+ where: Prisma.AttachmentWhereUniqueInput;
1304
+ };
1305
+ /**
1306
+ * Attachment updateMany
1307
+ */
1308
+ export type AttachmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1309
+ /**
1310
+ * The data used to update Attachments.
1311
+ */
1312
+ data: Prisma.XOR<Prisma.AttachmentUpdateManyMutationInput, Prisma.AttachmentUncheckedUpdateManyInput>;
1313
+ /**
1314
+ * Filter which Attachments to update
1315
+ */
1316
+ where?: Prisma.AttachmentWhereInput;
1317
+ /**
1318
+ * Limit how many Attachments to update.
1319
+ */
1320
+ limit?: number;
1321
+ };
1322
+ /**
1323
+ * Attachment updateManyAndReturn
1324
+ */
1325
+ export type AttachmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1326
+ /**
1327
+ * Select specific fields to fetch from the Attachment
1328
+ */
1329
+ select?: Prisma.AttachmentSelectUpdateManyAndReturn<ExtArgs> | null;
1330
+ /**
1331
+ * Omit specific fields from the Attachment
1332
+ */
1333
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1334
+ /**
1335
+ * The data used to update Attachments.
1336
+ */
1337
+ data: Prisma.XOR<Prisma.AttachmentUpdateManyMutationInput, Prisma.AttachmentUncheckedUpdateManyInput>;
1338
+ /**
1339
+ * Filter which Attachments to update
1340
+ */
1341
+ where?: Prisma.AttachmentWhereInput;
1342
+ /**
1343
+ * Limit how many Attachments to update.
1344
+ */
1345
+ limit?: number;
1346
+ /**
1347
+ * Choose, which related nodes to fetch as well
1348
+ */
1349
+ include?: Prisma.AttachmentIncludeUpdateManyAndReturn<ExtArgs> | null;
1350
+ };
1351
+ /**
1352
+ * Attachment upsert
1353
+ */
1354
+ export type AttachmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1355
+ /**
1356
+ * Select specific fields to fetch from the Attachment
1357
+ */
1358
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1359
+ /**
1360
+ * Omit specific fields from the Attachment
1361
+ */
1362
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1363
+ /**
1364
+ * Choose, which related nodes to fetch as well
1365
+ */
1366
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1367
+ /**
1368
+ * The filter to search for the Attachment to update in case it exists.
1369
+ */
1370
+ where: Prisma.AttachmentWhereUniqueInput;
1371
+ /**
1372
+ * In case the Attachment found by the `where` argument doesn't exist, create a new Attachment with this data.
1373
+ */
1374
+ create: Prisma.XOR<Prisma.AttachmentCreateInput, Prisma.AttachmentUncheckedCreateInput>;
1375
+ /**
1376
+ * In case the Attachment was found with the provided `where` argument, update it with this data.
1377
+ */
1378
+ update: Prisma.XOR<Prisma.AttachmentUpdateInput, Prisma.AttachmentUncheckedUpdateInput>;
1379
+ };
1380
+ /**
1381
+ * Attachment delete
1382
+ */
1383
+ export type AttachmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1384
+ /**
1385
+ * Select specific fields to fetch from the Attachment
1386
+ */
1387
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1388
+ /**
1389
+ * Omit specific fields from the Attachment
1390
+ */
1391
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1392
+ /**
1393
+ * Choose, which related nodes to fetch as well
1394
+ */
1395
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1396
+ /**
1397
+ * Filter which Attachment to delete.
1398
+ */
1399
+ where: Prisma.AttachmentWhereUniqueInput;
1400
+ };
1401
+ /**
1402
+ * Attachment deleteMany
1403
+ */
1404
+ export type AttachmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1405
+ /**
1406
+ * Filter which Attachments to delete
1407
+ */
1408
+ where?: Prisma.AttachmentWhereInput;
1409
+ /**
1410
+ * Limit how many Attachments to delete.
1411
+ */
1412
+ limit?: number;
1413
+ };
1414
+ /**
1415
+ * Attachment.fieldAttachments
1416
+ */
1417
+ export type Attachment$fieldAttachmentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1418
+ /**
1419
+ * Select specific fields to fetch from the FieldAttachment
1420
+ */
1421
+ select?: Prisma.FieldAttachmentSelect<ExtArgs> | null;
1422
+ /**
1423
+ * Omit specific fields from the FieldAttachment
1424
+ */
1425
+ omit?: Prisma.FieldAttachmentOmit<ExtArgs> | null;
1426
+ /**
1427
+ * Choose, which related nodes to fetch as well
1428
+ */
1429
+ include?: Prisma.FieldAttachmentInclude<ExtArgs> | null;
1430
+ where?: Prisma.FieldAttachmentWhereInput;
1431
+ orderBy?: Prisma.FieldAttachmentOrderByWithRelationInput | Prisma.FieldAttachmentOrderByWithRelationInput[];
1432
+ cursor?: Prisma.FieldAttachmentWhereUniqueInput;
1433
+ take?: number;
1434
+ skip?: number;
1435
+ distinct?: Prisma.FieldAttachmentScalarFieldEnum | Prisma.FieldAttachmentScalarFieldEnum[];
1436
+ };
1437
+ /**
1438
+ * Attachment without action
1439
+ */
1440
+ export type AttachmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1441
+ /**
1442
+ * Select specific fields to fetch from the Attachment
1443
+ */
1444
+ select?: Prisma.AttachmentSelect<ExtArgs> | null;
1445
+ /**
1446
+ * Omit specific fields from the Attachment
1447
+ */
1448
+ omit?: Prisma.AttachmentOmit<ExtArgs> | null;
1449
+ /**
1450
+ * Choose, which related nodes to fetch as well
1451
+ */
1452
+ include?: Prisma.AttachmentInclude<ExtArgs> | null;
1453
+ };
1454
+ export {};
1455
+ //# sourceMappingURL=Attachment.d.ts.map