@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,2578 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Operation
5
+ *
6
+ */
7
+ export type OperationModel = runtime.Types.Result.DefaultSelection<Prisma.$OperationPayload>;
8
+ export type AggregateOperation = {
9
+ _count: OperationCountAggregateOutputType | null;
10
+ _avg: OperationAvgAggregateOutputType | null;
11
+ _sum: OperationSumAggregateOutputType | null;
12
+ _min: OperationMinAggregateOutputType | null;
13
+ _max: OperationMaxAggregateOutputType | null;
14
+ };
15
+ export type OperationAvgAggregateOutputType = {
16
+ id: number | null;
17
+ orderRevId: number | null;
18
+ workCenterId: number | null;
19
+ seqNo: number | null;
20
+ createdById: number | null;
21
+ updatedById: number | null;
22
+ };
23
+ export type OperationSumAggregateOutputType = {
24
+ id: number | null;
25
+ orderRevId: number | null;
26
+ workCenterId: number | null;
27
+ seqNo: number | null;
28
+ createdById: number | null;
29
+ updatedById: number | null;
30
+ };
31
+ export type OperationMinAggregateOutputType = {
32
+ id: number | null;
33
+ orderRevId: number | null;
34
+ workCenterId: number | null;
35
+ seqNo: number | null;
36
+ title: string | null;
37
+ description: string | null;
38
+ createdAt: Date | null;
39
+ createdById: number | null;
40
+ updatedAt: Date | null;
41
+ updatedById: number | null;
42
+ };
43
+ export type OperationMaxAggregateOutputType = {
44
+ id: number | null;
45
+ orderRevId: number | null;
46
+ workCenterId: number | null;
47
+ seqNo: number | null;
48
+ title: string | null;
49
+ description: string | null;
50
+ createdAt: Date | null;
51
+ createdById: number | null;
52
+ updatedAt: Date | null;
53
+ updatedById: number | null;
54
+ };
55
+ export type OperationCountAggregateOutputType = {
56
+ id: number;
57
+ orderRevId: number;
58
+ workCenterId: number;
59
+ seqNo: number;
60
+ title: number;
61
+ description: number;
62
+ createdAt: number;
63
+ createdById: number;
64
+ updatedAt: number;
65
+ updatedById: number;
66
+ _all: number;
67
+ };
68
+ export type OperationAvgAggregateInputType = {
69
+ id?: true;
70
+ orderRevId?: true;
71
+ workCenterId?: true;
72
+ seqNo?: true;
73
+ createdById?: true;
74
+ updatedById?: true;
75
+ };
76
+ export type OperationSumAggregateInputType = {
77
+ id?: true;
78
+ orderRevId?: true;
79
+ workCenterId?: true;
80
+ seqNo?: true;
81
+ createdById?: true;
82
+ updatedById?: true;
83
+ };
84
+ export type OperationMinAggregateInputType = {
85
+ id?: true;
86
+ orderRevId?: true;
87
+ workCenterId?: true;
88
+ seqNo?: true;
89
+ title?: true;
90
+ description?: true;
91
+ createdAt?: true;
92
+ createdById?: true;
93
+ updatedAt?: true;
94
+ updatedById?: true;
95
+ };
96
+ export type OperationMaxAggregateInputType = {
97
+ id?: true;
98
+ orderRevId?: true;
99
+ workCenterId?: true;
100
+ seqNo?: true;
101
+ title?: true;
102
+ description?: true;
103
+ createdAt?: true;
104
+ createdById?: true;
105
+ updatedAt?: true;
106
+ updatedById?: true;
107
+ };
108
+ export type OperationCountAggregateInputType = {
109
+ id?: true;
110
+ orderRevId?: true;
111
+ workCenterId?: true;
112
+ seqNo?: true;
113
+ title?: true;
114
+ description?: true;
115
+ createdAt?: true;
116
+ createdById?: true;
117
+ updatedAt?: true;
118
+ updatedById?: true;
119
+ _all?: true;
120
+ };
121
+ export type OperationAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
122
+ /**
123
+ * Filter which Operation to aggregate.
124
+ */
125
+ where?: Prisma.OperationWhereInput;
126
+ /**
127
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
128
+ *
129
+ * Determine the order of Operations to fetch.
130
+ */
131
+ orderBy?: Prisma.OperationOrderByWithRelationInput | Prisma.OperationOrderByWithRelationInput[];
132
+ /**
133
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
134
+ *
135
+ * Sets the start position
136
+ */
137
+ cursor?: Prisma.OperationWhereUniqueInput;
138
+ /**
139
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
140
+ *
141
+ * Take `±n` Operations from the position of the cursor.
142
+ */
143
+ take?: number;
144
+ /**
145
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
146
+ *
147
+ * Skip the first `n` Operations.
148
+ */
149
+ skip?: number;
150
+ /**
151
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
152
+ *
153
+ * Count returned Operations
154
+ **/
155
+ _count?: true | OperationCountAggregateInputType;
156
+ /**
157
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
158
+ *
159
+ * Select which fields to average
160
+ **/
161
+ _avg?: OperationAvgAggregateInputType;
162
+ /**
163
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
164
+ *
165
+ * Select which fields to sum
166
+ **/
167
+ _sum?: OperationSumAggregateInputType;
168
+ /**
169
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
170
+ *
171
+ * Select which fields to find the minimum value
172
+ **/
173
+ _min?: OperationMinAggregateInputType;
174
+ /**
175
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
176
+ *
177
+ * Select which fields to find the maximum value
178
+ **/
179
+ _max?: OperationMaxAggregateInputType;
180
+ };
181
+ export type GetOperationAggregateType<T extends OperationAggregateArgs> = {
182
+ [P in keyof T & keyof AggregateOperation]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateOperation[P]> : Prisma.GetScalarType<T[P], AggregateOperation[P]>;
183
+ };
184
+ export type OperationGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
185
+ where?: Prisma.OperationWhereInput;
186
+ orderBy?: Prisma.OperationOrderByWithAggregationInput | Prisma.OperationOrderByWithAggregationInput[];
187
+ by: Prisma.OperationScalarFieldEnum[] | Prisma.OperationScalarFieldEnum;
188
+ having?: Prisma.OperationScalarWhereWithAggregatesInput;
189
+ take?: number;
190
+ skip?: number;
191
+ _count?: OperationCountAggregateInputType | true;
192
+ _avg?: OperationAvgAggregateInputType;
193
+ _sum?: OperationSumAggregateInputType;
194
+ _min?: OperationMinAggregateInputType;
195
+ _max?: OperationMaxAggregateInputType;
196
+ };
197
+ export type OperationGroupByOutputType = {
198
+ id: number;
199
+ orderRevId: number;
200
+ workCenterId: number | null;
201
+ seqNo: number;
202
+ title: string;
203
+ description: string;
204
+ createdAt: Date;
205
+ createdById: number;
206
+ updatedAt: Date;
207
+ updatedById: number;
208
+ _count: OperationCountAggregateOutputType | null;
209
+ _avg: OperationAvgAggregateOutputType | null;
210
+ _sum: OperationSumAggregateOutputType | null;
211
+ _min: OperationMinAggregateOutputType | null;
212
+ _max: OperationMaxAggregateOutputType | null;
213
+ };
214
+ type GetOperationGroupByPayload<T extends OperationGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<OperationGroupByOutputType, T['by']> & {
215
+ [P in ((keyof T) & (keyof OperationGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], OperationGroupByOutputType[P]> : Prisma.GetScalarType<T[P], OperationGroupByOutputType[P]>;
216
+ }>>;
217
+ export type OperationWhereInput = {
218
+ AND?: Prisma.OperationWhereInput | Prisma.OperationWhereInput[];
219
+ OR?: Prisma.OperationWhereInput[];
220
+ NOT?: Prisma.OperationWhereInput | Prisma.OperationWhereInput[];
221
+ id?: Prisma.IntFilter<"Operation"> | number;
222
+ orderRevId?: Prisma.IntFilter<"Operation"> | number;
223
+ workCenterId?: Prisma.IntNullableFilter<"Operation"> | number | null;
224
+ seqNo?: Prisma.IntFilter<"Operation"> | number;
225
+ title?: Prisma.StringFilter<"Operation"> | string;
226
+ description?: Prisma.StringFilter<"Operation"> | string;
227
+ createdAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
228
+ createdById?: Prisma.IntFilter<"Operation"> | number;
229
+ updatedAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
230
+ updatedById?: Prisma.IntFilter<"Operation"> | number;
231
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
232
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
233
+ orderRev?: Prisma.XOR<Prisma.OrderRevisionScalarRelationFilter, Prisma.OrderRevisionWhereInput>;
234
+ workCenter?: Prisma.XOR<Prisma.WorkCenterNullableScalarRelationFilter, Prisma.WorkCenterWhereInput> | null;
235
+ steps?: Prisma.StepListRelationFilter;
236
+ fieldRefs?: Prisma.OperationFieldRefListRelationFilter;
237
+ operationRuns?: Prisma.OperationRunListRelationFilter;
238
+ predecessors?: Prisma.OperationDependencyListRelationFilter;
239
+ successors?: Prisma.OperationDependencyListRelationFilter;
240
+ };
241
+ export type OperationOrderByWithRelationInput = {
242
+ id?: Prisma.SortOrder;
243
+ orderRevId?: Prisma.SortOrder;
244
+ workCenterId?: Prisma.SortOrderInput | Prisma.SortOrder;
245
+ seqNo?: Prisma.SortOrder;
246
+ title?: Prisma.SortOrder;
247
+ description?: Prisma.SortOrder;
248
+ createdAt?: Prisma.SortOrder;
249
+ createdById?: Prisma.SortOrder;
250
+ updatedAt?: Prisma.SortOrder;
251
+ updatedById?: Prisma.SortOrder;
252
+ createdBy?: Prisma.UserOrderByWithRelationInput;
253
+ updatedBy?: Prisma.UserOrderByWithRelationInput;
254
+ orderRev?: Prisma.OrderRevisionOrderByWithRelationInput;
255
+ workCenter?: Prisma.WorkCenterOrderByWithRelationInput;
256
+ steps?: Prisma.StepOrderByRelationAggregateInput;
257
+ fieldRefs?: Prisma.OperationFieldRefOrderByRelationAggregateInput;
258
+ operationRuns?: Prisma.OperationRunOrderByRelationAggregateInput;
259
+ predecessors?: Prisma.OperationDependencyOrderByRelationAggregateInput;
260
+ successors?: Prisma.OperationDependencyOrderByRelationAggregateInput;
261
+ };
262
+ export type OperationWhereUniqueInput = Prisma.AtLeast<{
263
+ id?: number;
264
+ orderRevId_seqNo?: Prisma.OperationOrderRevIdSeqNoCompoundUniqueInput;
265
+ AND?: Prisma.OperationWhereInput | Prisma.OperationWhereInput[];
266
+ OR?: Prisma.OperationWhereInput[];
267
+ NOT?: Prisma.OperationWhereInput | Prisma.OperationWhereInput[];
268
+ orderRevId?: Prisma.IntFilter<"Operation"> | number;
269
+ workCenterId?: Prisma.IntNullableFilter<"Operation"> | number | null;
270
+ seqNo?: Prisma.IntFilter<"Operation"> | number;
271
+ title?: Prisma.StringFilter<"Operation"> | string;
272
+ description?: Prisma.StringFilter<"Operation"> | string;
273
+ createdAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
274
+ createdById?: Prisma.IntFilter<"Operation"> | number;
275
+ updatedAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
276
+ updatedById?: Prisma.IntFilter<"Operation"> | number;
277
+ createdBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
278
+ updatedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>;
279
+ orderRev?: Prisma.XOR<Prisma.OrderRevisionScalarRelationFilter, Prisma.OrderRevisionWhereInput>;
280
+ workCenter?: Prisma.XOR<Prisma.WorkCenterNullableScalarRelationFilter, Prisma.WorkCenterWhereInput> | null;
281
+ steps?: Prisma.StepListRelationFilter;
282
+ fieldRefs?: Prisma.OperationFieldRefListRelationFilter;
283
+ operationRuns?: Prisma.OperationRunListRelationFilter;
284
+ predecessors?: Prisma.OperationDependencyListRelationFilter;
285
+ successors?: Prisma.OperationDependencyListRelationFilter;
286
+ }, "id" | "orderRevId_seqNo">;
287
+ export type OperationOrderByWithAggregationInput = {
288
+ id?: Prisma.SortOrder;
289
+ orderRevId?: Prisma.SortOrder;
290
+ workCenterId?: Prisma.SortOrderInput | Prisma.SortOrder;
291
+ seqNo?: Prisma.SortOrder;
292
+ title?: Prisma.SortOrder;
293
+ description?: Prisma.SortOrder;
294
+ createdAt?: Prisma.SortOrder;
295
+ createdById?: Prisma.SortOrder;
296
+ updatedAt?: Prisma.SortOrder;
297
+ updatedById?: Prisma.SortOrder;
298
+ _count?: Prisma.OperationCountOrderByAggregateInput;
299
+ _avg?: Prisma.OperationAvgOrderByAggregateInput;
300
+ _max?: Prisma.OperationMaxOrderByAggregateInput;
301
+ _min?: Prisma.OperationMinOrderByAggregateInput;
302
+ _sum?: Prisma.OperationSumOrderByAggregateInput;
303
+ };
304
+ export type OperationScalarWhereWithAggregatesInput = {
305
+ AND?: Prisma.OperationScalarWhereWithAggregatesInput | Prisma.OperationScalarWhereWithAggregatesInput[];
306
+ OR?: Prisma.OperationScalarWhereWithAggregatesInput[];
307
+ NOT?: Prisma.OperationScalarWhereWithAggregatesInput | Prisma.OperationScalarWhereWithAggregatesInput[];
308
+ id?: Prisma.IntWithAggregatesFilter<"Operation"> | number;
309
+ orderRevId?: Prisma.IntWithAggregatesFilter<"Operation"> | number;
310
+ workCenterId?: Prisma.IntNullableWithAggregatesFilter<"Operation"> | number | null;
311
+ seqNo?: Prisma.IntWithAggregatesFilter<"Operation"> | number;
312
+ title?: Prisma.StringWithAggregatesFilter<"Operation"> | string;
313
+ description?: Prisma.StringWithAggregatesFilter<"Operation"> | string;
314
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Operation"> | Date | string;
315
+ createdById?: Prisma.IntWithAggregatesFilter<"Operation"> | number;
316
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Operation"> | Date | string;
317
+ updatedById?: Prisma.IntWithAggregatesFilter<"Operation"> | number;
318
+ };
319
+ export type OperationCreateInput = {
320
+ seqNo: number;
321
+ title: string;
322
+ description?: string;
323
+ createdAt?: Date | string;
324
+ updatedAt?: Date | string;
325
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
326
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
327
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
328
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
329
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
330
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
331
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
332
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
333
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
334
+ };
335
+ export type OperationUncheckedCreateInput = {
336
+ id?: number;
337
+ orderRevId: number;
338
+ workCenterId?: number | null;
339
+ seqNo: number;
340
+ title: string;
341
+ description?: string;
342
+ createdAt?: Date | string;
343
+ createdById: number;
344
+ updatedAt?: Date | string;
345
+ updatedById: number;
346
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
347
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
348
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
349
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
350
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
351
+ };
352
+ export type OperationUpdateInput = {
353
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
354
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
355
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
356
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
357
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
358
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
359
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
360
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
361
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
362
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
363
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
364
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
365
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
366
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
367
+ };
368
+ export type OperationUncheckedUpdateInput = {
369
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
370
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
371
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
372
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
373
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
374
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
375
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
376
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
377
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
379
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
380
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
381
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
382
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
383
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
384
+ };
385
+ export type OperationCreateManyInput = {
386
+ id?: number;
387
+ orderRevId: number;
388
+ workCenterId?: number | null;
389
+ seqNo: number;
390
+ title: string;
391
+ description?: string;
392
+ createdAt?: Date | string;
393
+ createdById: number;
394
+ updatedAt?: Date | string;
395
+ updatedById: number;
396
+ };
397
+ export type OperationUpdateManyMutationInput = {
398
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
399
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
400
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
401
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
402
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
403
+ };
404
+ export type OperationUncheckedUpdateManyInput = {
405
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
406
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
407
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
408
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
409
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
410
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
411
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
412
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
413
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
414
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
415
+ };
416
+ export type OperationListRelationFilter = {
417
+ every?: Prisma.OperationWhereInput;
418
+ some?: Prisma.OperationWhereInput;
419
+ none?: Prisma.OperationWhereInput;
420
+ };
421
+ export type OperationOrderByRelationAggregateInput = {
422
+ _count?: Prisma.SortOrder;
423
+ };
424
+ export type OperationOrderRevIdSeqNoCompoundUniqueInput = {
425
+ orderRevId: number;
426
+ seqNo: number;
427
+ };
428
+ export type OperationCountOrderByAggregateInput = {
429
+ id?: Prisma.SortOrder;
430
+ orderRevId?: Prisma.SortOrder;
431
+ workCenterId?: Prisma.SortOrder;
432
+ seqNo?: Prisma.SortOrder;
433
+ title?: Prisma.SortOrder;
434
+ description?: Prisma.SortOrder;
435
+ createdAt?: Prisma.SortOrder;
436
+ createdById?: Prisma.SortOrder;
437
+ updatedAt?: Prisma.SortOrder;
438
+ updatedById?: Prisma.SortOrder;
439
+ };
440
+ export type OperationAvgOrderByAggregateInput = {
441
+ id?: Prisma.SortOrder;
442
+ orderRevId?: Prisma.SortOrder;
443
+ workCenterId?: Prisma.SortOrder;
444
+ seqNo?: Prisma.SortOrder;
445
+ createdById?: Prisma.SortOrder;
446
+ updatedById?: Prisma.SortOrder;
447
+ };
448
+ export type OperationMaxOrderByAggregateInput = {
449
+ id?: Prisma.SortOrder;
450
+ orderRevId?: Prisma.SortOrder;
451
+ workCenterId?: Prisma.SortOrder;
452
+ seqNo?: Prisma.SortOrder;
453
+ title?: Prisma.SortOrder;
454
+ description?: Prisma.SortOrder;
455
+ createdAt?: Prisma.SortOrder;
456
+ createdById?: Prisma.SortOrder;
457
+ updatedAt?: Prisma.SortOrder;
458
+ updatedById?: Prisma.SortOrder;
459
+ };
460
+ export type OperationMinOrderByAggregateInput = {
461
+ id?: Prisma.SortOrder;
462
+ orderRevId?: Prisma.SortOrder;
463
+ workCenterId?: Prisma.SortOrder;
464
+ seqNo?: Prisma.SortOrder;
465
+ title?: Prisma.SortOrder;
466
+ description?: Prisma.SortOrder;
467
+ createdAt?: Prisma.SortOrder;
468
+ createdById?: Prisma.SortOrder;
469
+ updatedAt?: Prisma.SortOrder;
470
+ updatedById?: Prisma.SortOrder;
471
+ };
472
+ export type OperationSumOrderByAggregateInput = {
473
+ id?: Prisma.SortOrder;
474
+ orderRevId?: Prisma.SortOrder;
475
+ workCenterId?: Prisma.SortOrder;
476
+ seqNo?: Prisma.SortOrder;
477
+ createdById?: Prisma.SortOrder;
478
+ updatedById?: Prisma.SortOrder;
479
+ };
480
+ export type OperationScalarRelationFilter = {
481
+ is?: Prisma.OperationWhereInput;
482
+ isNot?: Prisma.OperationWhereInput;
483
+ };
484
+ export type OperationCreateNestedManyWithoutOrderRevInput = {
485
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput> | Prisma.OperationCreateWithoutOrderRevInput[] | Prisma.OperationUncheckedCreateWithoutOrderRevInput[];
486
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOrderRevInput | Prisma.OperationCreateOrConnectWithoutOrderRevInput[];
487
+ createMany?: Prisma.OperationCreateManyOrderRevInputEnvelope;
488
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
489
+ };
490
+ export type OperationUncheckedCreateNestedManyWithoutOrderRevInput = {
491
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput> | Prisma.OperationCreateWithoutOrderRevInput[] | Prisma.OperationUncheckedCreateWithoutOrderRevInput[];
492
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOrderRevInput | Prisma.OperationCreateOrConnectWithoutOrderRevInput[];
493
+ createMany?: Prisma.OperationCreateManyOrderRevInputEnvelope;
494
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
495
+ };
496
+ export type OperationUpdateManyWithoutOrderRevNestedInput = {
497
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput> | Prisma.OperationCreateWithoutOrderRevInput[] | Prisma.OperationUncheckedCreateWithoutOrderRevInput[];
498
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOrderRevInput | Prisma.OperationCreateOrConnectWithoutOrderRevInput[];
499
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutOrderRevInput | Prisma.OperationUpsertWithWhereUniqueWithoutOrderRevInput[];
500
+ createMany?: Prisma.OperationCreateManyOrderRevInputEnvelope;
501
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
502
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
503
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
504
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
505
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutOrderRevInput | Prisma.OperationUpdateWithWhereUniqueWithoutOrderRevInput[];
506
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutOrderRevInput | Prisma.OperationUpdateManyWithWhereWithoutOrderRevInput[];
507
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
508
+ };
509
+ export type OperationUncheckedUpdateManyWithoutOrderRevNestedInput = {
510
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput> | Prisma.OperationCreateWithoutOrderRevInput[] | Prisma.OperationUncheckedCreateWithoutOrderRevInput[];
511
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOrderRevInput | Prisma.OperationCreateOrConnectWithoutOrderRevInput[];
512
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutOrderRevInput | Prisma.OperationUpsertWithWhereUniqueWithoutOrderRevInput[];
513
+ createMany?: Prisma.OperationCreateManyOrderRevInputEnvelope;
514
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
515
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
516
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
517
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
518
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutOrderRevInput | Prisma.OperationUpdateWithWhereUniqueWithoutOrderRevInput[];
519
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutOrderRevInput | Prisma.OperationUpdateManyWithWhereWithoutOrderRevInput[];
520
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
521
+ };
522
+ export type OperationCreateNestedOneWithoutFieldRefsInput = {
523
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutFieldRefsInput, Prisma.OperationUncheckedCreateWithoutFieldRefsInput>;
524
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutFieldRefsInput;
525
+ connect?: Prisma.OperationWhereUniqueInput;
526
+ };
527
+ export type OperationUpdateOneRequiredWithoutFieldRefsNestedInput = {
528
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutFieldRefsInput, Prisma.OperationUncheckedCreateWithoutFieldRefsInput>;
529
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutFieldRefsInput;
530
+ upsert?: Prisma.OperationUpsertWithoutFieldRefsInput;
531
+ connect?: Prisma.OperationWhereUniqueInput;
532
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OperationUpdateToOneWithWhereWithoutFieldRefsInput, Prisma.OperationUpdateWithoutFieldRefsInput>, Prisma.OperationUncheckedUpdateWithoutFieldRefsInput>;
533
+ };
534
+ export type OperationCreateNestedOneWithoutPredecessorsInput = {
535
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutPredecessorsInput, Prisma.OperationUncheckedCreateWithoutPredecessorsInput>;
536
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutPredecessorsInput;
537
+ connect?: Prisma.OperationWhereUniqueInput;
538
+ };
539
+ export type OperationCreateNestedOneWithoutSuccessorsInput = {
540
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutSuccessorsInput, Prisma.OperationUncheckedCreateWithoutSuccessorsInput>;
541
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutSuccessorsInput;
542
+ connect?: Prisma.OperationWhereUniqueInput;
543
+ };
544
+ export type OperationUpdateOneRequiredWithoutPredecessorsNestedInput = {
545
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutPredecessorsInput, Prisma.OperationUncheckedCreateWithoutPredecessorsInput>;
546
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutPredecessorsInput;
547
+ upsert?: Prisma.OperationUpsertWithoutPredecessorsInput;
548
+ connect?: Prisma.OperationWhereUniqueInput;
549
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OperationUpdateToOneWithWhereWithoutPredecessorsInput, Prisma.OperationUpdateWithoutPredecessorsInput>, Prisma.OperationUncheckedUpdateWithoutPredecessorsInput>;
550
+ };
551
+ export type OperationUpdateOneRequiredWithoutSuccessorsNestedInput = {
552
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutSuccessorsInput, Prisma.OperationUncheckedCreateWithoutSuccessorsInput>;
553
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutSuccessorsInput;
554
+ upsert?: Prisma.OperationUpsertWithoutSuccessorsInput;
555
+ connect?: Prisma.OperationWhereUniqueInput;
556
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OperationUpdateToOneWithWhereWithoutSuccessorsInput, Prisma.OperationUpdateWithoutSuccessorsInput>, Prisma.OperationUncheckedUpdateWithoutSuccessorsInput>;
557
+ };
558
+ export type OperationCreateNestedManyWithoutWorkCenterInput = {
559
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput> | Prisma.OperationCreateWithoutWorkCenterInput[] | Prisma.OperationUncheckedCreateWithoutWorkCenterInput[];
560
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutWorkCenterInput | Prisma.OperationCreateOrConnectWithoutWorkCenterInput[];
561
+ createMany?: Prisma.OperationCreateManyWorkCenterInputEnvelope;
562
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
563
+ };
564
+ export type OperationUncheckedCreateNestedManyWithoutWorkCenterInput = {
565
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput> | Prisma.OperationCreateWithoutWorkCenterInput[] | Prisma.OperationUncheckedCreateWithoutWorkCenterInput[];
566
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutWorkCenterInput | Prisma.OperationCreateOrConnectWithoutWorkCenterInput[];
567
+ createMany?: Prisma.OperationCreateManyWorkCenterInputEnvelope;
568
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
569
+ };
570
+ export type OperationUpdateManyWithoutWorkCenterNestedInput = {
571
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput> | Prisma.OperationCreateWithoutWorkCenterInput[] | Prisma.OperationUncheckedCreateWithoutWorkCenterInput[];
572
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutWorkCenterInput | Prisma.OperationCreateOrConnectWithoutWorkCenterInput[];
573
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutWorkCenterInput | Prisma.OperationUpsertWithWhereUniqueWithoutWorkCenterInput[];
574
+ createMany?: Prisma.OperationCreateManyWorkCenterInputEnvelope;
575
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
576
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
577
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
578
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
579
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutWorkCenterInput | Prisma.OperationUpdateWithWhereUniqueWithoutWorkCenterInput[];
580
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutWorkCenterInput | Prisma.OperationUpdateManyWithWhereWithoutWorkCenterInput[];
581
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
582
+ };
583
+ export type OperationUncheckedUpdateManyWithoutWorkCenterNestedInput = {
584
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput> | Prisma.OperationCreateWithoutWorkCenterInput[] | Prisma.OperationUncheckedCreateWithoutWorkCenterInput[];
585
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutWorkCenterInput | Prisma.OperationCreateOrConnectWithoutWorkCenterInput[];
586
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutWorkCenterInput | Prisma.OperationUpsertWithWhereUniqueWithoutWorkCenterInput[];
587
+ createMany?: Prisma.OperationCreateManyWorkCenterInputEnvelope;
588
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
589
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
590
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
591
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
592
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutWorkCenterInput | Prisma.OperationUpdateWithWhereUniqueWithoutWorkCenterInput[];
593
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutWorkCenterInput | Prisma.OperationUpdateManyWithWhereWithoutWorkCenterInput[];
594
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
595
+ };
596
+ export type OperationCreateNestedOneWithoutStepsInput = {
597
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutStepsInput, Prisma.OperationUncheckedCreateWithoutStepsInput>;
598
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutStepsInput;
599
+ connect?: Prisma.OperationWhereUniqueInput;
600
+ };
601
+ export type OperationUpdateOneRequiredWithoutStepsNestedInput = {
602
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutStepsInput, Prisma.OperationUncheckedCreateWithoutStepsInput>;
603
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutStepsInput;
604
+ upsert?: Prisma.OperationUpsertWithoutStepsInput;
605
+ connect?: Prisma.OperationWhereUniqueInput;
606
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OperationUpdateToOneWithWhereWithoutStepsInput, Prisma.OperationUpdateWithoutStepsInput>, Prisma.OperationUncheckedUpdateWithoutStepsInput>;
607
+ };
608
+ export type OperationCreateNestedOneWithoutOperationRunsInput = {
609
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOperationRunsInput, Prisma.OperationUncheckedCreateWithoutOperationRunsInput>;
610
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOperationRunsInput;
611
+ connect?: Prisma.OperationWhereUniqueInput;
612
+ };
613
+ export type OperationUpdateOneRequiredWithoutOperationRunsNestedInput = {
614
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutOperationRunsInput, Prisma.OperationUncheckedCreateWithoutOperationRunsInput>;
615
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutOperationRunsInput;
616
+ upsert?: Prisma.OperationUpsertWithoutOperationRunsInput;
617
+ connect?: Prisma.OperationWhereUniqueInput;
618
+ update?: Prisma.XOR<Prisma.XOR<Prisma.OperationUpdateToOneWithWhereWithoutOperationRunsInput, Prisma.OperationUpdateWithoutOperationRunsInput>, Prisma.OperationUncheckedUpdateWithoutOperationRunsInput>;
619
+ };
620
+ export type OperationCreateNestedManyWithoutCreatedByInput = {
621
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput> | Prisma.OperationCreateWithoutCreatedByInput[] | Prisma.OperationUncheckedCreateWithoutCreatedByInput[];
622
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutCreatedByInput | Prisma.OperationCreateOrConnectWithoutCreatedByInput[];
623
+ createMany?: Prisma.OperationCreateManyCreatedByInputEnvelope;
624
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
625
+ };
626
+ export type OperationCreateNestedManyWithoutUpdatedByInput = {
627
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput> | Prisma.OperationCreateWithoutUpdatedByInput[] | Prisma.OperationUncheckedCreateWithoutUpdatedByInput[];
628
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutUpdatedByInput | Prisma.OperationCreateOrConnectWithoutUpdatedByInput[];
629
+ createMany?: Prisma.OperationCreateManyUpdatedByInputEnvelope;
630
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
631
+ };
632
+ export type OperationUncheckedCreateNestedManyWithoutCreatedByInput = {
633
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput> | Prisma.OperationCreateWithoutCreatedByInput[] | Prisma.OperationUncheckedCreateWithoutCreatedByInput[];
634
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutCreatedByInput | Prisma.OperationCreateOrConnectWithoutCreatedByInput[];
635
+ createMany?: Prisma.OperationCreateManyCreatedByInputEnvelope;
636
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
637
+ };
638
+ export type OperationUncheckedCreateNestedManyWithoutUpdatedByInput = {
639
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput> | Prisma.OperationCreateWithoutUpdatedByInput[] | Prisma.OperationUncheckedCreateWithoutUpdatedByInput[];
640
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutUpdatedByInput | Prisma.OperationCreateOrConnectWithoutUpdatedByInput[];
641
+ createMany?: Prisma.OperationCreateManyUpdatedByInputEnvelope;
642
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
643
+ };
644
+ export type OperationUpdateManyWithoutCreatedByNestedInput = {
645
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput> | Prisma.OperationCreateWithoutCreatedByInput[] | Prisma.OperationUncheckedCreateWithoutCreatedByInput[];
646
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutCreatedByInput | Prisma.OperationCreateOrConnectWithoutCreatedByInput[];
647
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.OperationUpsertWithWhereUniqueWithoutCreatedByInput[];
648
+ createMany?: Prisma.OperationCreateManyCreatedByInputEnvelope;
649
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
650
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
651
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
652
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
653
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.OperationUpdateWithWhereUniqueWithoutCreatedByInput[];
654
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutCreatedByInput | Prisma.OperationUpdateManyWithWhereWithoutCreatedByInput[];
655
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
656
+ };
657
+ export type OperationUpdateManyWithoutUpdatedByNestedInput = {
658
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput> | Prisma.OperationCreateWithoutUpdatedByInput[] | Prisma.OperationUncheckedCreateWithoutUpdatedByInput[];
659
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutUpdatedByInput | Prisma.OperationCreateOrConnectWithoutUpdatedByInput[];
660
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.OperationUpsertWithWhereUniqueWithoutUpdatedByInput[];
661
+ createMany?: Prisma.OperationCreateManyUpdatedByInputEnvelope;
662
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
663
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
664
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
665
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
666
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.OperationUpdateWithWhereUniqueWithoutUpdatedByInput[];
667
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutUpdatedByInput | Prisma.OperationUpdateManyWithWhereWithoutUpdatedByInput[];
668
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
669
+ };
670
+ export type OperationUncheckedUpdateManyWithoutCreatedByNestedInput = {
671
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput> | Prisma.OperationCreateWithoutCreatedByInput[] | Prisma.OperationUncheckedCreateWithoutCreatedByInput[];
672
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutCreatedByInput | Prisma.OperationCreateOrConnectWithoutCreatedByInput[];
673
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutCreatedByInput | Prisma.OperationUpsertWithWhereUniqueWithoutCreatedByInput[];
674
+ createMany?: Prisma.OperationCreateManyCreatedByInputEnvelope;
675
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
676
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
677
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
678
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
679
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutCreatedByInput | Prisma.OperationUpdateWithWhereUniqueWithoutCreatedByInput[];
680
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutCreatedByInput | Prisma.OperationUpdateManyWithWhereWithoutCreatedByInput[];
681
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
682
+ };
683
+ export type OperationUncheckedUpdateManyWithoutUpdatedByNestedInput = {
684
+ create?: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput> | Prisma.OperationCreateWithoutUpdatedByInput[] | Prisma.OperationUncheckedCreateWithoutUpdatedByInput[];
685
+ connectOrCreate?: Prisma.OperationCreateOrConnectWithoutUpdatedByInput | Prisma.OperationCreateOrConnectWithoutUpdatedByInput[];
686
+ upsert?: Prisma.OperationUpsertWithWhereUniqueWithoutUpdatedByInput | Prisma.OperationUpsertWithWhereUniqueWithoutUpdatedByInput[];
687
+ createMany?: Prisma.OperationCreateManyUpdatedByInputEnvelope;
688
+ set?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
689
+ disconnect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
690
+ delete?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
691
+ connect?: Prisma.OperationWhereUniqueInput | Prisma.OperationWhereUniqueInput[];
692
+ update?: Prisma.OperationUpdateWithWhereUniqueWithoutUpdatedByInput | Prisma.OperationUpdateWithWhereUniqueWithoutUpdatedByInput[];
693
+ updateMany?: Prisma.OperationUpdateManyWithWhereWithoutUpdatedByInput | Prisma.OperationUpdateManyWithWhereWithoutUpdatedByInput[];
694
+ deleteMany?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
695
+ };
696
+ export type OperationCreateWithoutOrderRevInput = {
697
+ seqNo: number;
698
+ title: string;
699
+ description?: string;
700
+ createdAt?: Date | string;
701
+ updatedAt?: Date | string;
702
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
703
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
704
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
705
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
706
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
707
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
708
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
709
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
710
+ };
711
+ export type OperationUncheckedCreateWithoutOrderRevInput = {
712
+ id?: number;
713
+ workCenterId?: number | null;
714
+ seqNo: number;
715
+ title: string;
716
+ description?: string;
717
+ createdAt?: Date | string;
718
+ createdById: number;
719
+ updatedAt?: Date | string;
720
+ updatedById: number;
721
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
722
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
723
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
724
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
725
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
726
+ };
727
+ export type OperationCreateOrConnectWithoutOrderRevInput = {
728
+ where: Prisma.OperationWhereUniqueInput;
729
+ create: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput>;
730
+ };
731
+ export type OperationCreateManyOrderRevInputEnvelope = {
732
+ data: Prisma.OperationCreateManyOrderRevInput | Prisma.OperationCreateManyOrderRevInput[];
733
+ };
734
+ export type OperationUpsertWithWhereUniqueWithoutOrderRevInput = {
735
+ where: Prisma.OperationWhereUniqueInput;
736
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutOrderRevInput, Prisma.OperationUncheckedUpdateWithoutOrderRevInput>;
737
+ create: Prisma.XOR<Prisma.OperationCreateWithoutOrderRevInput, Prisma.OperationUncheckedCreateWithoutOrderRevInput>;
738
+ };
739
+ export type OperationUpdateWithWhereUniqueWithoutOrderRevInput = {
740
+ where: Prisma.OperationWhereUniqueInput;
741
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutOrderRevInput, Prisma.OperationUncheckedUpdateWithoutOrderRevInput>;
742
+ };
743
+ export type OperationUpdateManyWithWhereWithoutOrderRevInput = {
744
+ where: Prisma.OperationScalarWhereInput;
745
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyWithoutOrderRevInput>;
746
+ };
747
+ export type OperationScalarWhereInput = {
748
+ AND?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
749
+ OR?: Prisma.OperationScalarWhereInput[];
750
+ NOT?: Prisma.OperationScalarWhereInput | Prisma.OperationScalarWhereInput[];
751
+ id?: Prisma.IntFilter<"Operation"> | number;
752
+ orderRevId?: Prisma.IntFilter<"Operation"> | number;
753
+ workCenterId?: Prisma.IntNullableFilter<"Operation"> | number | null;
754
+ seqNo?: Prisma.IntFilter<"Operation"> | number;
755
+ title?: Prisma.StringFilter<"Operation"> | string;
756
+ description?: Prisma.StringFilter<"Operation"> | string;
757
+ createdAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
758
+ createdById?: Prisma.IntFilter<"Operation"> | number;
759
+ updatedAt?: Prisma.DateTimeFilter<"Operation"> | Date | string;
760
+ updatedById?: Prisma.IntFilter<"Operation"> | number;
761
+ };
762
+ export type OperationCreateWithoutFieldRefsInput = {
763
+ seqNo: number;
764
+ title: string;
765
+ description?: string;
766
+ createdAt?: Date | string;
767
+ updatedAt?: Date | string;
768
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
769
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
770
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
771
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
772
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
773
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
774
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
775
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
776
+ };
777
+ export type OperationUncheckedCreateWithoutFieldRefsInput = {
778
+ id?: number;
779
+ orderRevId: number;
780
+ workCenterId?: number | null;
781
+ seqNo: number;
782
+ title: string;
783
+ description?: string;
784
+ createdAt?: Date | string;
785
+ createdById: number;
786
+ updatedAt?: Date | string;
787
+ updatedById: number;
788
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
789
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
790
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
791
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
792
+ };
793
+ export type OperationCreateOrConnectWithoutFieldRefsInput = {
794
+ where: Prisma.OperationWhereUniqueInput;
795
+ create: Prisma.XOR<Prisma.OperationCreateWithoutFieldRefsInput, Prisma.OperationUncheckedCreateWithoutFieldRefsInput>;
796
+ };
797
+ export type OperationUpsertWithoutFieldRefsInput = {
798
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutFieldRefsInput, Prisma.OperationUncheckedUpdateWithoutFieldRefsInput>;
799
+ create: Prisma.XOR<Prisma.OperationCreateWithoutFieldRefsInput, Prisma.OperationUncheckedCreateWithoutFieldRefsInput>;
800
+ where?: Prisma.OperationWhereInput;
801
+ };
802
+ export type OperationUpdateToOneWithWhereWithoutFieldRefsInput = {
803
+ where?: Prisma.OperationWhereInput;
804
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutFieldRefsInput, Prisma.OperationUncheckedUpdateWithoutFieldRefsInput>;
805
+ };
806
+ export type OperationUpdateWithoutFieldRefsInput = {
807
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
808
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
809
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
810
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
811
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
812
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
813
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
814
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
815
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
816
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
817
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
818
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
819
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
820
+ };
821
+ export type OperationUncheckedUpdateWithoutFieldRefsInput = {
822
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
823
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
824
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
825
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
826
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
827
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
828
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
829
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
830
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
831
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
832
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
833
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
834
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
835
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
836
+ };
837
+ export type OperationCreateWithoutPredecessorsInput = {
838
+ seqNo: number;
839
+ title: string;
840
+ description?: string;
841
+ createdAt?: Date | string;
842
+ updatedAt?: Date | string;
843
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
844
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
845
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
846
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
847
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
848
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
849
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
850
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
851
+ };
852
+ export type OperationUncheckedCreateWithoutPredecessorsInput = {
853
+ id?: number;
854
+ orderRevId: number;
855
+ workCenterId?: number | null;
856
+ seqNo: number;
857
+ title: string;
858
+ description?: string;
859
+ createdAt?: Date | string;
860
+ createdById: number;
861
+ updatedAt?: Date | string;
862
+ updatedById: number;
863
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
864
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
865
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
866
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
867
+ };
868
+ export type OperationCreateOrConnectWithoutPredecessorsInput = {
869
+ where: Prisma.OperationWhereUniqueInput;
870
+ create: Prisma.XOR<Prisma.OperationCreateWithoutPredecessorsInput, Prisma.OperationUncheckedCreateWithoutPredecessorsInput>;
871
+ };
872
+ export type OperationCreateWithoutSuccessorsInput = {
873
+ seqNo: number;
874
+ title: string;
875
+ description?: string;
876
+ createdAt?: Date | string;
877
+ updatedAt?: Date | string;
878
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
879
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
880
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
881
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
882
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
883
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
884
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
885
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
886
+ };
887
+ export type OperationUncheckedCreateWithoutSuccessorsInput = {
888
+ id?: number;
889
+ orderRevId: number;
890
+ workCenterId?: number | null;
891
+ seqNo: number;
892
+ title: string;
893
+ description?: string;
894
+ createdAt?: Date | string;
895
+ createdById: number;
896
+ updatedAt?: Date | string;
897
+ updatedById: number;
898
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
899
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
900
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
901
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
902
+ };
903
+ export type OperationCreateOrConnectWithoutSuccessorsInput = {
904
+ where: Prisma.OperationWhereUniqueInput;
905
+ create: Prisma.XOR<Prisma.OperationCreateWithoutSuccessorsInput, Prisma.OperationUncheckedCreateWithoutSuccessorsInput>;
906
+ };
907
+ export type OperationUpsertWithoutPredecessorsInput = {
908
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutPredecessorsInput, Prisma.OperationUncheckedUpdateWithoutPredecessorsInput>;
909
+ create: Prisma.XOR<Prisma.OperationCreateWithoutPredecessorsInput, Prisma.OperationUncheckedCreateWithoutPredecessorsInput>;
910
+ where?: Prisma.OperationWhereInput;
911
+ };
912
+ export type OperationUpdateToOneWithWhereWithoutPredecessorsInput = {
913
+ where?: Prisma.OperationWhereInput;
914
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutPredecessorsInput, Prisma.OperationUncheckedUpdateWithoutPredecessorsInput>;
915
+ };
916
+ export type OperationUpdateWithoutPredecessorsInput = {
917
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
918
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
919
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
920
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
921
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
922
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
923
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
924
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
925
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
926
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
927
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
928
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
929
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
930
+ };
931
+ export type OperationUncheckedUpdateWithoutPredecessorsInput = {
932
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
933
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
934
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
935
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
936
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
937
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
938
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
939
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
940
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
941
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
942
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
943
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
944
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
945
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
946
+ };
947
+ export type OperationUpsertWithoutSuccessorsInput = {
948
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutSuccessorsInput, Prisma.OperationUncheckedUpdateWithoutSuccessorsInput>;
949
+ create: Prisma.XOR<Prisma.OperationCreateWithoutSuccessorsInput, Prisma.OperationUncheckedCreateWithoutSuccessorsInput>;
950
+ where?: Prisma.OperationWhereInput;
951
+ };
952
+ export type OperationUpdateToOneWithWhereWithoutSuccessorsInput = {
953
+ where?: Prisma.OperationWhereInput;
954
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutSuccessorsInput, Prisma.OperationUncheckedUpdateWithoutSuccessorsInput>;
955
+ };
956
+ export type OperationUpdateWithoutSuccessorsInput = {
957
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
958
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
959
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
960
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
961
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
962
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
963
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
964
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
965
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
966
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
967
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
968
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
969
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
970
+ };
971
+ export type OperationUncheckedUpdateWithoutSuccessorsInput = {
972
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
973
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
974
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
975
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
976
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
977
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
978
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
979
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
980
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
981
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
982
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
983
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
984
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
985
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
986
+ };
987
+ export type OperationCreateWithoutWorkCenterInput = {
988
+ seqNo: number;
989
+ title: string;
990
+ description?: string;
991
+ createdAt?: Date | string;
992
+ updatedAt?: Date | string;
993
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
994
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
995
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
996
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
997
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
998
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
999
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
1000
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
1001
+ };
1002
+ export type OperationUncheckedCreateWithoutWorkCenterInput = {
1003
+ id?: number;
1004
+ orderRevId: number;
1005
+ seqNo: number;
1006
+ title: string;
1007
+ description?: string;
1008
+ createdAt?: Date | string;
1009
+ createdById: number;
1010
+ updatedAt?: Date | string;
1011
+ updatedById: number;
1012
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
1013
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
1014
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
1015
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
1016
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
1017
+ };
1018
+ export type OperationCreateOrConnectWithoutWorkCenterInput = {
1019
+ where: Prisma.OperationWhereUniqueInput;
1020
+ create: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput>;
1021
+ };
1022
+ export type OperationCreateManyWorkCenterInputEnvelope = {
1023
+ data: Prisma.OperationCreateManyWorkCenterInput | Prisma.OperationCreateManyWorkCenterInput[];
1024
+ };
1025
+ export type OperationUpsertWithWhereUniqueWithoutWorkCenterInput = {
1026
+ where: Prisma.OperationWhereUniqueInput;
1027
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutWorkCenterInput, Prisma.OperationUncheckedUpdateWithoutWorkCenterInput>;
1028
+ create: Prisma.XOR<Prisma.OperationCreateWithoutWorkCenterInput, Prisma.OperationUncheckedCreateWithoutWorkCenterInput>;
1029
+ };
1030
+ export type OperationUpdateWithWhereUniqueWithoutWorkCenterInput = {
1031
+ where: Prisma.OperationWhereUniqueInput;
1032
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutWorkCenterInput, Prisma.OperationUncheckedUpdateWithoutWorkCenterInput>;
1033
+ };
1034
+ export type OperationUpdateManyWithWhereWithoutWorkCenterInput = {
1035
+ where: Prisma.OperationScalarWhereInput;
1036
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyWithoutWorkCenterInput>;
1037
+ };
1038
+ export type OperationCreateWithoutStepsInput = {
1039
+ seqNo: number;
1040
+ title: string;
1041
+ description?: string;
1042
+ createdAt?: Date | string;
1043
+ updatedAt?: Date | string;
1044
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
1045
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
1046
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
1047
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
1048
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
1049
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
1050
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
1051
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
1052
+ };
1053
+ export type OperationUncheckedCreateWithoutStepsInput = {
1054
+ id?: number;
1055
+ orderRevId: number;
1056
+ workCenterId?: number | null;
1057
+ seqNo: number;
1058
+ title: string;
1059
+ description?: string;
1060
+ createdAt?: Date | string;
1061
+ createdById: number;
1062
+ updatedAt?: Date | string;
1063
+ updatedById: number;
1064
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
1065
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
1066
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
1067
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
1068
+ };
1069
+ export type OperationCreateOrConnectWithoutStepsInput = {
1070
+ where: Prisma.OperationWhereUniqueInput;
1071
+ create: Prisma.XOR<Prisma.OperationCreateWithoutStepsInput, Prisma.OperationUncheckedCreateWithoutStepsInput>;
1072
+ };
1073
+ export type OperationUpsertWithoutStepsInput = {
1074
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutStepsInput, Prisma.OperationUncheckedUpdateWithoutStepsInput>;
1075
+ create: Prisma.XOR<Prisma.OperationCreateWithoutStepsInput, Prisma.OperationUncheckedCreateWithoutStepsInput>;
1076
+ where?: Prisma.OperationWhereInput;
1077
+ };
1078
+ export type OperationUpdateToOneWithWhereWithoutStepsInput = {
1079
+ where?: Prisma.OperationWhereInput;
1080
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutStepsInput, Prisma.OperationUncheckedUpdateWithoutStepsInput>;
1081
+ };
1082
+ export type OperationUpdateWithoutStepsInput = {
1083
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1084
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1085
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1086
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1087
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1088
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
1089
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
1090
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
1091
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
1092
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1093
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
1094
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1095
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1096
+ };
1097
+ export type OperationUncheckedUpdateWithoutStepsInput = {
1098
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1099
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1100
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1101
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1102
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1103
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1104
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1105
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1106
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1107
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1108
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1109
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
1110
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1111
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1112
+ };
1113
+ export type OperationCreateWithoutOperationRunsInput = {
1114
+ seqNo: number;
1115
+ title: string;
1116
+ description?: string;
1117
+ createdAt?: Date | string;
1118
+ updatedAt?: Date | string;
1119
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
1120
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
1121
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
1122
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
1123
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
1124
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
1125
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
1126
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
1127
+ };
1128
+ export type OperationUncheckedCreateWithoutOperationRunsInput = {
1129
+ id?: number;
1130
+ orderRevId: number;
1131
+ workCenterId?: number | null;
1132
+ seqNo: number;
1133
+ title: string;
1134
+ description?: string;
1135
+ createdAt?: Date | string;
1136
+ createdById: number;
1137
+ updatedAt?: Date | string;
1138
+ updatedById: number;
1139
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
1140
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
1141
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
1142
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
1143
+ };
1144
+ export type OperationCreateOrConnectWithoutOperationRunsInput = {
1145
+ where: Prisma.OperationWhereUniqueInput;
1146
+ create: Prisma.XOR<Prisma.OperationCreateWithoutOperationRunsInput, Prisma.OperationUncheckedCreateWithoutOperationRunsInput>;
1147
+ };
1148
+ export type OperationUpsertWithoutOperationRunsInput = {
1149
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutOperationRunsInput, Prisma.OperationUncheckedUpdateWithoutOperationRunsInput>;
1150
+ create: Prisma.XOR<Prisma.OperationCreateWithoutOperationRunsInput, Prisma.OperationUncheckedCreateWithoutOperationRunsInput>;
1151
+ where?: Prisma.OperationWhereInput;
1152
+ };
1153
+ export type OperationUpdateToOneWithWhereWithoutOperationRunsInput = {
1154
+ where?: Prisma.OperationWhereInput;
1155
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutOperationRunsInput, Prisma.OperationUncheckedUpdateWithoutOperationRunsInput>;
1156
+ };
1157
+ export type OperationUpdateWithoutOperationRunsInput = {
1158
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1159
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1160
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1161
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1162
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1163
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
1164
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
1165
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
1166
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
1167
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
1168
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1169
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1170
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1171
+ };
1172
+ export type OperationUncheckedUpdateWithoutOperationRunsInput = {
1173
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1174
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1175
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1176
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1177
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1178
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1179
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1180
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1181
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1182
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1183
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
1184
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1185
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1186
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1187
+ };
1188
+ export type OperationCreateWithoutCreatedByInput = {
1189
+ seqNo: number;
1190
+ title: string;
1191
+ description?: string;
1192
+ createdAt?: Date | string;
1193
+ updatedAt?: Date | string;
1194
+ updatedBy: Prisma.UserCreateNestedOneWithoutOpsUpdatedInput;
1195
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
1196
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
1197
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
1198
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
1199
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
1200
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
1201
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
1202
+ };
1203
+ export type OperationUncheckedCreateWithoutCreatedByInput = {
1204
+ id?: number;
1205
+ orderRevId: number;
1206
+ workCenterId?: number | null;
1207
+ seqNo: number;
1208
+ title: string;
1209
+ description?: string;
1210
+ createdAt?: Date | string;
1211
+ updatedAt?: Date | string;
1212
+ updatedById: number;
1213
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
1214
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
1215
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
1216
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
1217
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
1218
+ };
1219
+ export type OperationCreateOrConnectWithoutCreatedByInput = {
1220
+ where: Prisma.OperationWhereUniqueInput;
1221
+ create: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput>;
1222
+ };
1223
+ export type OperationCreateManyCreatedByInputEnvelope = {
1224
+ data: Prisma.OperationCreateManyCreatedByInput | Prisma.OperationCreateManyCreatedByInput[];
1225
+ };
1226
+ export type OperationCreateWithoutUpdatedByInput = {
1227
+ seqNo: number;
1228
+ title: string;
1229
+ description?: string;
1230
+ createdAt?: Date | string;
1231
+ updatedAt?: Date | string;
1232
+ createdBy: Prisma.UserCreateNestedOneWithoutOpsCreatedInput;
1233
+ orderRev: Prisma.OrderRevisionCreateNestedOneWithoutOperationsInput;
1234
+ workCenter?: Prisma.WorkCenterCreateNestedOneWithoutOperationsInput;
1235
+ steps?: Prisma.StepCreateNestedManyWithoutOperationInput;
1236
+ fieldRefs?: Prisma.OperationFieldRefCreateNestedManyWithoutOperationInput;
1237
+ operationRuns?: Prisma.OperationRunCreateNestedManyWithoutOperationInput;
1238
+ predecessors?: Prisma.OperationDependencyCreateNestedManyWithoutSuccessorInput;
1239
+ successors?: Prisma.OperationDependencyCreateNestedManyWithoutPredecessorInput;
1240
+ };
1241
+ export type OperationUncheckedCreateWithoutUpdatedByInput = {
1242
+ id?: number;
1243
+ orderRevId: number;
1244
+ workCenterId?: number | null;
1245
+ seqNo: number;
1246
+ title: string;
1247
+ description?: string;
1248
+ createdAt?: Date | string;
1249
+ createdById: number;
1250
+ updatedAt?: Date | string;
1251
+ steps?: Prisma.StepUncheckedCreateNestedManyWithoutOperationInput;
1252
+ fieldRefs?: Prisma.OperationFieldRefUncheckedCreateNestedManyWithoutOperationInput;
1253
+ operationRuns?: Prisma.OperationRunUncheckedCreateNestedManyWithoutOperationInput;
1254
+ predecessors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutSuccessorInput;
1255
+ successors?: Prisma.OperationDependencyUncheckedCreateNestedManyWithoutPredecessorInput;
1256
+ };
1257
+ export type OperationCreateOrConnectWithoutUpdatedByInput = {
1258
+ where: Prisma.OperationWhereUniqueInput;
1259
+ create: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput>;
1260
+ };
1261
+ export type OperationCreateManyUpdatedByInputEnvelope = {
1262
+ data: Prisma.OperationCreateManyUpdatedByInput | Prisma.OperationCreateManyUpdatedByInput[];
1263
+ };
1264
+ export type OperationUpsertWithWhereUniqueWithoutCreatedByInput = {
1265
+ where: Prisma.OperationWhereUniqueInput;
1266
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutCreatedByInput, Prisma.OperationUncheckedUpdateWithoutCreatedByInput>;
1267
+ create: Prisma.XOR<Prisma.OperationCreateWithoutCreatedByInput, Prisma.OperationUncheckedCreateWithoutCreatedByInput>;
1268
+ };
1269
+ export type OperationUpdateWithWhereUniqueWithoutCreatedByInput = {
1270
+ where: Prisma.OperationWhereUniqueInput;
1271
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutCreatedByInput, Prisma.OperationUncheckedUpdateWithoutCreatedByInput>;
1272
+ };
1273
+ export type OperationUpdateManyWithWhereWithoutCreatedByInput = {
1274
+ where: Prisma.OperationScalarWhereInput;
1275
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyWithoutCreatedByInput>;
1276
+ };
1277
+ export type OperationUpsertWithWhereUniqueWithoutUpdatedByInput = {
1278
+ where: Prisma.OperationWhereUniqueInput;
1279
+ update: Prisma.XOR<Prisma.OperationUpdateWithoutUpdatedByInput, Prisma.OperationUncheckedUpdateWithoutUpdatedByInput>;
1280
+ create: Prisma.XOR<Prisma.OperationCreateWithoutUpdatedByInput, Prisma.OperationUncheckedCreateWithoutUpdatedByInput>;
1281
+ };
1282
+ export type OperationUpdateWithWhereUniqueWithoutUpdatedByInput = {
1283
+ where: Prisma.OperationWhereUniqueInput;
1284
+ data: Prisma.XOR<Prisma.OperationUpdateWithoutUpdatedByInput, Prisma.OperationUncheckedUpdateWithoutUpdatedByInput>;
1285
+ };
1286
+ export type OperationUpdateManyWithWhereWithoutUpdatedByInput = {
1287
+ where: Prisma.OperationScalarWhereInput;
1288
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyWithoutUpdatedByInput>;
1289
+ };
1290
+ export type OperationCreateManyOrderRevInput = {
1291
+ id?: number;
1292
+ workCenterId?: number | null;
1293
+ seqNo: number;
1294
+ title: string;
1295
+ description?: string;
1296
+ createdAt?: Date | string;
1297
+ createdById: number;
1298
+ updatedAt?: Date | string;
1299
+ updatedById: number;
1300
+ };
1301
+ export type OperationUpdateWithoutOrderRevInput = {
1302
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1303
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1304
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1305
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1306
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1307
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
1308
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
1309
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
1310
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
1311
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1312
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
1313
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1314
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1315
+ };
1316
+ export type OperationUncheckedUpdateWithoutOrderRevInput = {
1317
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1318
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1319
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1320
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1321
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1322
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1323
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1324
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1325
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1326
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
1327
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1328
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
1329
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1330
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1331
+ };
1332
+ export type OperationUncheckedUpdateManyWithoutOrderRevInput = {
1333
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1334
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1335
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1336
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1337
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1338
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1339
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1340
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1341
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1342
+ };
1343
+ export type OperationCreateManyWorkCenterInput = {
1344
+ id?: number;
1345
+ orderRevId: number;
1346
+ seqNo: number;
1347
+ title: string;
1348
+ description?: string;
1349
+ createdAt?: Date | string;
1350
+ createdById: number;
1351
+ updatedAt?: Date | string;
1352
+ updatedById: number;
1353
+ };
1354
+ export type OperationUpdateWithoutWorkCenterInput = {
1355
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1356
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1357
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1358
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1359
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1360
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
1361
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
1362
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
1363
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
1364
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1365
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
1366
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1367
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1368
+ };
1369
+ export type OperationUncheckedUpdateWithoutWorkCenterInput = {
1370
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1371
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1372
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1373
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1374
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1375
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1376
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1377
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1378
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1379
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
1380
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1381
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
1382
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1383
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1384
+ };
1385
+ export type OperationUncheckedUpdateManyWithoutWorkCenterInput = {
1386
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1387
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1388
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1389
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1390
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1391
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1392
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1393
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1394
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1395
+ };
1396
+ export type OperationCreateManyCreatedByInput = {
1397
+ id?: number;
1398
+ orderRevId: number;
1399
+ workCenterId?: number | null;
1400
+ seqNo: number;
1401
+ title: string;
1402
+ description?: string;
1403
+ createdAt?: Date | string;
1404
+ updatedAt?: Date | string;
1405
+ updatedById: number;
1406
+ };
1407
+ export type OperationCreateManyUpdatedByInput = {
1408
+ id?: number;
1409
+ orderRevId: number;
1410
+ workCenterId?: number | null;
1411
+ seqNo: number;
1412
+ title: string;
1413
+ description?: string;
1414
+ createdAt?: Date | string;
1415
+ createdById: number;
1416
+ updatedAt?: Date | string;
1417
+ };
1418
+ export type OperationUpdateWithoutCreatedByInput = {
1419
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1420
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1421
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1422
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1423
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1424
+ updatedBy?: Prisma.UserUpdateOneRequiredWithoutOpsUpdatedNestedInput;
1425
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
1426
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
1427
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
1428
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1429
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
1430
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1431
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1432
+ };
1433
+ export type OperationUncheckedUpdateWithoutCreatedByInput = {
1434
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1435
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1436
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1437
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1438
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1439
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1440
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1441
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1442
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1443
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
1444
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1445
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
1446
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1447
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1448
+ };
1449
+ export type OperationUncheckedUpdateManyWithoutCreatedByInput = {
1450
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1451
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1452
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1453
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1454
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1455
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1456
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1457
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1458
+ updatedById?: Prisma.IntFieldUpdateOperationsInput | number;
1459
+ };
1460
+ export type OperationUpdateWithoutUpdatedByInput = {
1461
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1462
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1463
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1464
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1465
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1466
+ createdBy?: Prisma.UserUpdateOneRequiredWithoutOpsCreatedNestedInput;
1467
+ orderRev?: Prisma.OrderRevisionUpdateOneRequiredWithoutOperationsNestedInput;
1468
+ workCenter?: Prisma.WorkCenterUpdateOneWithoutOperationsNestedInput;
1469
+ steps?: Prisma.StepUpdateManyWithoutOperationNestedInput;
1470
+ fieldRefs?: Prisma.OperationFieldRefUpdateManyWithoutOperationNestedInput;
1471
+ operationRuns?: Prisma.OperationRunUpdateManyWithoutOperationNestedInput;
1472
+ predecessors?: Prisma.OperationDependencyUpdateManyWithoutSuccessorNestedInput;
1473
+ successors?: Prisma.OperationDependencyUpdateManyWithoutPredecessorNestedInput;
1474
+ };
1475
+ export type OperationUncheckedUpdateWithoutUpdatedByInput = {
1476
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1477
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1478
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1479
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1480
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1481
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1482
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1483
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1484
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1485
+ steps?: Prisma.StepUncheckedUpdateManyWithoutOperationNestedInput;
1486
+ fieldRefs?: Prisma.OperationFieldRefUncheckedUpdateManyWithoutOperationNestedInput;
1487
+ operationRuns?: Prisma.OperationRunUncheckedUpdateManyWithoutOperationNestedInput;
1488
+ predecessors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutSuccessorNestedInput;
1489
+ successors?: Prisma.OperationDependencyUncheckedUpdateManyWithoutPredecessorNestedInput;
1490
+ };
1491
+ export type OperationUncheckedUpdateManyWithoutUpdatedByInput = {
1492
+ id?: Prisma.IntFieldUpdateOperationsInput | number;
1493
+ orderRevId?: Prisma.IntFieldUpdateOperationsInput | number;
1494
+ workCenterId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
1495
+ seqNo?: Prisma.IntFieldUpdateOperationsInput | number;
1496
+ title?: Prisma.StringFieldUpdateOperationsInput | string;
1497
+ description?: Prisma.StringFieldUpdateOperationsInput | string;
1498
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1499
+ createdById?: Prisma.IntFieldUpdateOperationsInput | number;
1500
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
1501
+ };
1502
+ /**
1503
+ * Count Type OperationCountOutputType
1504
+ */
1505
+ export type OperationCountOutputType = {
1506
+ steps: number;
1507
+ fieldRefs: number;
1508
+ operationRuns: number;
1509
+ predecessors: number;
1510
+ successors: number;
1511
+ };
1512
+ export type OperationCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1513
+ steps?: boolean | OperationCountOutputTypeCountStepsArgs;
1514
+ fieldRefs?: boolean | OperationCountOutputTypeCountFieldRefsArgs;
1515
+ operationRuns?: boolean | OperationCountOutputTypeCountOperationRunsArgs;
1516
+ predecessors?: boolean | OperationCountOutputTypeCountPredecessorsArgs;
1517
+ successors?: boolean | OperationCountOutputTypeCountSuccessorsArgs;
1518
+ };
1519
+ /**
1520
+ * OperationCountOutputType without action
1521
+ */
1522
+ export type OperationCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1523
+ /**
1524
+ * Select specific fields to fetch from the OperationCountOutputType
1525
+ */
1526
+ select?: Prisma.OperationCountOutputTypeSelect<ExtArgs> | null;
1527
+ };
1528
+ /**
1529
+ * OperationCountOutputType without action
1530
+ */
1531
+ export type OperationCountOutputTypeCountStepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1532
+ where?: Prisma.StepWhereInput;
1533
+ };
1534
+ /**
1535
+ * OperationCountOutputType without action
1536
+ */
1537
+ export type OperationCountOutputTypeCountFieldRefsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1538
+ where?: Prisma.OperationFieldRefWhereInput;
1539
+ };
1540
+ /**
1541
+ * OperationCountOutputType without action
1542
+ */
1543
+ export type OperationCountOutputTypeCountOperationRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1544
+ where?: Prisma.OperationRunWhereInput;
1545
+ };
1546
+ /**
1547
+ * OperationCountOutputType without action
1548
+ */
1549
+ export type OperationCountOutputTypeCountPredecessorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1550
+ where?: Prisma.OperationDependencyWhereInput;
1551
+ };
1552
+ /**
1553
+ * OperationCountOutputType without action
1554
+ */
1555
+ export type OperationCountOutputTypeCountSuccessorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1556
+ where?: Prisma.OperationDependencyWhereInput;
1557
+ };
1558
+ export type OperationSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1559
+ id?: boolean;
1560
+ orderRevId?: boolean;
1561
+ workCenterId?: boolean;
1562
+ seqNo?: boolean;
1563
+ title?: boolean;
1564
+ description?: boolean;
1565
+ createdAt?: boolean;
1566
+ createdById?: boolean;
1567
+ updatedAt?: boolean;
1568
+ updatedById?: boolean;
1569
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1570
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1571
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1572
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1573
+ steps?: boolean | Prisma.Operation$stepsArgs<ExtArgs>;
1574
+ fieldRefs?: boolean | Prisma.Operation$fieldRefsArgs<ExtArgs>;
1575
+ operationRuns?: boolean | Prisma.Operation$operationRunsArgs<ExtArgs>;
1576
+ predecessors?: boolean | Prisma.Operation$predecessorsArgs<ExtArgs>;
1577
+ successors?: boolean | Prisma.Operation$successorsArgs<ExtArgs>;
1578
+ _count?: boolean | Prisma.OperationCountOutputTypeDefaultArgs<ExtArgs>;
1579
+ }, ExtArgs["result"]["operation"]>;
1580
+ export type OperationSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1581
+ id?: boolean;
1582
+ orderRevId?: boolean;
1583
+ workCenterId?: boolean;
1584
+ seqNo?: boolean;
1585
+ title?: boolean;
1586
+ description?: boolean;
1587
+ createdAt?: boolean;
1588
+ createdById?: boolean;
1589
+ updatedAt?: boolean;
1590
+ updatedById?: boolean;
1591
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1592
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1593
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1594
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1595
+ }, ExtArgs["result"]["operation"]>;
1596
+ export type OperationSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1597
+ id?: boolean;
1598
+ orderRevId?: boolean;
1599
+ workCenterId?: boolean;
1600
+ seqNo?: boolean;
1601
+ title?: boolean;
1602
+ description?: boolean;
1603
+ createdAt?: boolean;
1604
+ createdById?: boolean;
1605
+ updatedAt?: boolean;
1606
+ updatedById?: boolean;
1607
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1608
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1609
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1610
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1611
+ }, ExtArgs["result"]["operation"]>;
1612
+ export type OperationSelectScalar = {
1613
+ id?: boolean;
1614
+ orderRevId?: boolean;
1615
+ workCenterId?: boolean;
1616
+ seqNo?: boolean;
1617
+ title?: boolean;
1618
+ description?: boolean;
1619
+ createdAt?: boolean;
1620
+ createdById?: boolean;
1621
+ updatedAt?: boolean;
1622
+ updatedById?: boolean;
1623
+ };
1624
+ export type OperationOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "orderRevId" | "workCenterId" | "seqNo" | "title" | "description" | "createdAt" | "createdById" | "updatedAt" | "updatedById", ExtArgs["result"]["operation"]>;
1625
+ export type OperationInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1626
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1627
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1628
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1629
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1630
+ steps?: boolean | Prisma.Operation$stepsArgs<ExtArgs>;
1631
+ fieldRefs?: boolean | Prisma.Operation$fieldRefsArgs<ExtArgs>;
1632
+ operationRuns?: boolean | Prisma.Operation$operationRunsArgs<ExtArgs>;
1633
+ predecessors?: boolean | Prisma.Operation$predecessorsArgs<ExtArgs>;
1634
+ successors?: boolean | Prisma.Operation$successorsArgs<ExtArgs>;
1635
+ _count?: boolean | Prisma.OperationCountOutputTypeDefaultArgs<ExtArgs>;
1636
+ };
1637
+ export type OperationIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1638
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1639
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1640
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1641
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1642
+ };
1643
+ export type OperationIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1644
+ createdBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1645
+ updatedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>;
1646
+ orderRev?: boolean | Prisma.OrderRevisionDefaultArgs<ExtArgs>;
1647
+ workCenter?: boolean | Prisma.Operation$workCenterArgs<ExtArgs>;
1648
+ };
1649
+ export type $OperationPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1650
+ name: "Operation";
1651
+ objects: {
1652
+ createdBy: Prisma.$UserPayload<ExtArgs>;
1653
+ updatedBy: Prisma.$UserPayload<ExtArgs>;
1654
+ orderRev: Prisma.$OrderRevisionPayload<ExtArgs>;
1655
+ workCenter: Prisma.$WorkCenterPayload<ExtArgs> | null;
1656
+ steps: Prisma.$StepPayload<ExtArgs>[];
1657
+ fieldRefs: Prisma.$OperationFieldRefPayload<ExtArgs>[];
1658
+ operationRuns: Prisma.$OperationRunPayload<ExtArgs>[];
1659
+ predecessors: Prisma.$OperationDependencyPayload<ExtArgs>[];
1660
+ successors: Prisma.$OperationDependencyPayload<ExtArgs>[];
1661
+ };
1662
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1663
+ id: number;
1664
+ orderRevId: number;
1665
+ workCenterId: number | null;
1666
+ seqNo: number;
1667
+ title: string;
1668
+ description: string;
1669
+ createdAt: Date;
1670
+ createdById: number;
1671
+ updatedAt: Date;
1672
+ updatedById: number;
1673
+ }, ExtArgs["result"]["operation"]>;
1674
+ composites: {};
1675
+ };
1676
+ export type OperationGetPayload<S extends boolean | null | undefined | OperationDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OperationPayload, S>;
1677
+ export type OperationCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<OperationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1678
+ select?: OperationCountAggregateInputType | true;
1679
+ };
1680
+ export interface OperationDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1681
+ [K: symbol]: {
1682
+ types: Prisma.TypeMap<ExtArgs>['model']['Operation'];
1683
+ meta: {
1684
+ name: 'Operation';
1685
+ };
1686
+ };
1687
+ /**
1688
+ * Find zero or one Operation that matches the filter.
1689
+ * @param {OperationFindUniqueArgs} args - Arguments to find a Operation
1690
+ * @example
1691
+ * // Get one Operation
1692
+ * const operation = await prisma.operation.findUnique({
1693
+ * where: {
1694
+ * // ... provide filter here
1695
+ * }
1696
+ * })
1697
+ */
1698
+ findUnique<T extends OperationFindUniqueArgs>(args: Prisma.SelectSubset<T, OperationFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1699
+ /**
1700
+ * Find one Operation that matches the filter or throw an error with `error.code='P2025'`
1701
+ * if no matches were found.
1702
+ * @param {OperationFindUniqueOrThrowArgs} args - Arguments to find a Operation
1703
+ * @example
1704
+ * // Get one Operation
1705
+ * const operation = await prisma.operation.findUniqueOrThrow({
1706
+ * where: {
1707
+ * // ... provide filter here
1708
+ * }
1709
+ * })
1710
+ */
1711
+ findUniqueOrThrow<T extends OperationFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OperationFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1712
+ /**
1713
+ * Find the first Operation that matches the filter.
1714
+ * Note, that providing `undefined` is treated as the value not being there.
1715
+ * Read more here: https://pris.ly/d/null-undefined
1716
+ * @param {OperationFindFirstArgs} args - Arguments to find a Operation
1717
+ * @example
1718
+ * // Get one Operation
1719
+ * const operation = await prisma.operation.findFirst({
1720
+ * where: {
1721
+ * // ... provide filter here
1722
+ * }
1723
+ * })
1724
+ */
1725
+ findFirst<T extends OperationFindFirstArgs>(args?: Prisma.SelectSubset<T, OperationFindFirstArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
1726
+ /**
1727
+ * Find the first Operation that matches the filter or
1728
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1729
+ * Note, that providing `undefined` is treated as the value not being there.
1730
+ * Read more here: https://pris.ly/d/null-undefined
1731
+ * @param {OperationFindFirstOrThrowArgs} args - Arguments to find a Operation
1732
+ * @example
1733
+ * // Get one Operation
1734
+ * const operation = await prisma.operation.findFirstOrThrow({
1735
+ * where: {
1736
+ * // ... provide filter here
1737
+ * }
1738
+ * })
1739
+ */
1740
+ findFirstOrThrow<T extends OperationFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OperationFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1741
+ /**
1742
+ * Find zero or more Operations that matches the filter.
1743
+ * Note, that providing `undefined` is treated as the value not being there.
1744
+ * Read more here: https://pris.ly/d/null-undefined
1745
+ * @param {OperationFindManyArgs} args - Arguments to filter and select certain fields only.
1746
+ * @example
1747
+ * // Get all Operations
1748
+ * const operations = await prisma.operation.findMany()
1749
+ *
1750
+ * // Get first 10 Operations
1751
+ * const operations = await prisma.operation.findMany({ take: 10 })
1752
+ *
1753
+ * // Only select the `id`
1754
+ * const operationWithIdOnly = await prisma.operation.findMany({ select: { id: true } })
1755
+ *
1756
+ */
1757
+ findMany<T extends OperationFindManyArgs>(args?: Prisma.SelectSubset<T, OperationFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
1758
+ /**
1759
+ * Create a Operation.
1760
+ * @param {OperationCreateArgs} args - Arguments to create a Operation.
1761
+ * @example
1762
+ * // Create one Operation
1763
+ * const Operation = await prisma.operation.create({
1764
+ * data: {
1765
+ * // ... data to create a Operation
1766
+ * }
1767
+ * })
1768
+ *
1769
+ */
1770
+ create<T extends OperationCreateArgs>(args: Prisma.SelectSubset<T, OperationCreateArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1771
+ /**
1772
+ * Create many Operations.
1773
+ * @param {OperationCreateManyArgs} args - Arguments to create many Operations.
1774
+ * @example
1775
+ * // Create many Operations
1776
+ * const operation = await prisma.operation.createMany({
1777
+ * data: [
1778
+ * // ... provide data here
1779
+ * ]
1780
+ * })
1781
+ *
1782
+ */
1783
+ createMany<T extends OperationCreateManyArgs>(args?: Prisma.SelectSubset<T, OperationCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1784
+ /**
1785
+ * Create many Operations and returns the data saved in the database.
1786
+ * @param {OperationCreateManyAndReturnArgs} args - Arguments to create many Operations.
1787
+ * @example
1788
+ * // Create many Operations
1789
+ * const operation = await prisma.operation.createManyAndReturn({
1790
+ * data: [
1791
+ * // ... provide data here
1792
+ * ]
1793
+ * })
1794
+ *
1795
+ * // Create many Operations and only return the `id`
1796
+ * const operationWithIdOnly = await prisma.operation.createManyAndReturn({
1797
+ * select: { id: true },
1798
+ * data: [
1799
+ * // ... provide data here
1800
+ * ]
1801
+ * })
1802
+ * Note, that providing `undefined` is treated as the value not being there.
1803
+ * Read more here: https://pris.ly/d/null-undefined
1804
+ *
1805
+ */
1806
+ createManyAndReturn<T extends OperationCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OperationCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
1807
+ /**
1808
+ * Delete a Operation.
1809
+ * @param {OperationDeleteArgs} args - Arguments to delete one Operation.
1810
+ * @example
1811
+ * // Delete one Operation
1812
+ * const Operation = await prisma.operation.delete({
1813
+ * where: {
1814
+ * // ... filter to delete one Operation
1815
+ * }
1816
+ * })
1817
+ *
1818
+ */
1819
+ delete<T extends OperationDeleteArgs>(args: Prisma.SelectSubset<T, OperationDeleteArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1820
+ /**
1821
+ * Update one Operation.
1822
+ * @param {OperationUpdateArgs} args - Arguments to update one Operation.
1823
+ * @example
1824
+ * // Update one Operation
1825
+ * const operation = await prisma.operation.update({
1826
+ * where: {
1827
+ * // ... provide filter here
1828
+ * },
1829
+ * data: {
1830
+ * // ... provide data here
1831
+ * }
1832
+ * })
1833
+ *
1834
+ */
1835
+ update<T extends OperationUpdateArgs>(args: Prisma.SelectSubset<T, OperationUpdateArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1836
+ /**
1837
+ * Delete zero or more Operations.
1838
+ * @param {OperationDeleteManyArgs} args - Arguments to filter Operations to delete.
1839
+ * @example
1840
+ * // Delete a few Operations
1841
+ * const { count } = await prisma.operation.deleteMany({
1842
+ * where: {
1843
+ * // ... provide filter here
1844
+ * }
1845
+ * })
1846
+ *
1847
+ */
1848
+ deleteMany<T extends OperationDeleteManyArgs>(args?: Prisma.SelectSubset<T, OperationDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1849
+ /**
1850
+ * Update zero or more Operations.
1851
+ * Note, that providing `undefined` is treated as the value not being there.
1852
+ * Read more here: https://pris.ly/d/null-undefined
1853
+ * @param {OperationUpdateManyArgs} args - Arguments to update one or more rows.
1854
+ * @example
1855
+ * // Update many Operations
1856
+ * const operation = await prisma.operation.updateMany({
1857
+ * where: {
1858
+ * // ... provide filter here
1859
+ * },
1860
+ * data: {
1861
+ * // ... provide data here
1862
+ * }
1863
+ * })
1864
+ *
1865
+ */
1866
+ updateMany<T extends OperationUpdateManyArgs>(args: Prisma.SelectSubset<T, OperationUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
1867
+ /**
1868
+ * Update zero or more Operations and returns the data updated in the database.
1869
+ * @param {OperationUpdateManyAndReturnArgs} args - Arguments to update many Operations.
1870
+ * @example
1871
+ * // Update many Operations
1872
+ * const operation = await prisma.operation.updateManyAndReturn({
1873
+ * where: {
1874
+ * // ... provide filter here
1875
+ * },
1876
+ * data: [
1877
+ * // ... provide data here
1878
+ * ]
1879
+ * })
1880
+ *
1881
+ * // Update zero or more Operations and only return the `id`
1882
+ * const operationWithIdOnly = await prisma.operation.updateManyAndReturn({
1883
+ * select: { id: true },
1884
+ * where: {
1885
+ * // ... provide filter here
1886
+ * },
1887
+ * data: [
1888
+ * // ... provide data here
1889
+ * ]
1890
+ * })
1891
+ * Note, that providing `undefined` is treated as the value not being there.
1892
+ * Read more here: https://pris.ly/d/null-undefined
1893
+ *
1894
+ */
1895
+ updateManyAndReturn<T extends OperationUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OperationUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
1896
+ /**
1897
+ * Create or update one Operation.
1898
+ * @param {OperationUpsertArgs} args - Arguments to update or create a Operation.
1899
+ * @example
1900
+ * // Update or create a Operation
1901
+ * const operation = await prisma.operation.upsert({
1902
+ * create: {
1903
+ * // ... data to create a Operation
1904
+ * },
1905
+ * update: {
1906
+ * // ... in case it already exists, update
1907
+ * },
1908
+ * where: {
1909
+ * // ... the filter for the Operation we want to update
1910
+ * }
1911
+ * })
1912
+ */
1913
+ upsert<T extends OperationUpsertArgs>(args: Prisma.SelectSubset<T, OperationUpsertArgs<ExtArgs>>): Prisma.Prisma__OperationClient<runtime.Types.Result.GetResult<Prisma.$OperationPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
1914
+ /**
1915
+ * Count the number of Operations.
1916
+ * Note, that providing `undefined` is treated as the value not being there.
1917
+ * Read more here: https://pris.ly/d/null-undefined
1918
+ * @param {OperationCountArgs} args - Arguments to filter Operations to count.
1919
+ * @example
1920
+ * // Count the number of Operations
1921
+ * const count = await prisma.operation.count({
1922
+ * where: {
1923
+ * // ... the filter for the Operations we want to count
1924
+ * }
1925
+ * })
1926
+ **/
1927
+ count<T extends OperationCountArgs>(args?: Prisma.Subset<T, OperationCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], OperationCountAggregateOutputType> : number>;
1928
+ /**
1929
+ * Allows you to perform aggregations operations on a Operation.
1930
+ * Note, that providing `undefined` is treated as the value not being there.
1931
+ * Read more here: https://pris.ly/d/null-undefined
1932
+ * @param {OperationAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1933
+ * @example
1934
+ * // Ordered by age ascending
1935
+ * // Where email contains prisma.io
1936
+ * // Limited to the 10 users
1937
+ * const aggregations = await prisma.user.aggregate({
1938
+ * _avg: {
1939
+ * age: true,
1940
+ * },
1941
+ * where: {
1942
+ * email: {
1943
+ * contains: "prisma.io",
1944
+ * },
1945
+ * },
1946
+ * orderBy: {
1947
+ * age: "asc",
1948
+ * },
1949
+ * take: 10,
1950
+ * })
1951
+ **/
1952
+ aggregate<T extends OperationAggregateArgs>(args: Prisma.Subset<T, OperationAggregateArgs>): Prisma.PrismaPromise<GetOperationAggregateType<T>>;
1953
+ /**
1954
+ * Group by Operation.
1955
+ * Note, that providing `undefined` is treated as the value not being there.
1956
+ * Read more here: https://pris.ly/d/null-undefined
1957
+ * @param {OperationGroupByArgs} args - Group by arguments.
1958
+ * @example
1959
+ * // Group by city, order by createdAt, get count
1960
+ * const result = await prisma.user.groupBy({
1961
+ * by: ['city', 'createdAt'],
1962
+ * orderBy: {
1963
+ * createdAt: true
1964
+ * },
1965
+ * _count: {
1966
+ * _all: true
1967
+ * },
1968
+ * })
1969
+ *
1970
+ **/
1971
+ groupBy<T extends OperationGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
1972
+ orderBy: OperationGroupByArgs['orderBy'];
1973
+ } : {
1974
+ orderBy?: OperationGroupByArgs['orderBy'];
1975
+ }, 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 ? {
1976
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
1977
+ Error,
1978
+ 'Field ',
1979
+ P,
1980
+ ` in "having" needs to be provided in "by"`
1981
+ ];
1982
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
1983
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1984
+ }[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 ? {} : {
1985
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1986
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
1987
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1988
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, OperationGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOperationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
1989
+ /**
1990
+ * Fields of the Operation model
1991
+ */
1992
+ readonly fields: OperationFieldRefs;
1993
+ }
1994
+ /**
1995
+ * The delegate class that acts as a "Promise-like" for Operation.
1996
+ * Why is this prefixed with `Prisma__`?
1997
+ * Because we want to prevent naming conflicts as mentioned in
1998
+ * https://github.com/prisma/prisma-client-js/issues/707
1999
+ */
2000
+ export interface Prisma__OperationClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
2001
+ readonly [Symbol.toStringTag]: "PrismaPromise";
2002
+ createdBy<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>;
2003
+ updatedBy<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>;
2004
+ orderRev<T extends Prisma.OrderRevisionDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.OrderRevisionDefaultArgs<ExtArgs>>): Prisma.Prisma__OrderRevisionClient<runtime.Types.Result.GetResult<Prisma.$OrderRevisionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>;
2005
+ workCenter<T extends Prisma.Operation$workCenterArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$workCenterArgs<ExtArgs>>): Prisma.Prisma__WorkCenterClient<runtime.Types.Result.GetResult<Prisma.$WorkCenterPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
2006
+ steps<T extends Prisma.Operation$stepsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$stepsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$StepPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2007
+ fieldRefs<T extends Prisma.Operation$fieldRefsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$fieldRefsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationFieldRefPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2008
+ operationRuns<T extends Prisma.Operation$operationRunsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$operationRunsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationRunPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2009
+ predecessors<T extends Prisma.Operation$predecessorsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$predecessorsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationDependencyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2010
+ successors<T extends Prisma.Operation$successorsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Operation$successorsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OperationDependencyPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>;
2011
+ /**
2012
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
2013
+ * @param onfulfilled The callback to execute when the Promise is resolved.
2014
+ * @param onrejected The callback to execute when the Promise is rejected.
2015
+ * @returns A Promise for the completion of which ever callback is executed.
2016
+ */
2017
+ 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>;
2018
+ /**
2019
+ * Attaches a callback for only the rejection of the Promise.
2020
+ * @param onrejected The callback to execute when the Promise is rejected.
2021
+ * @returns A Promise for the completion of the callback.
2022
+ */
2023
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
2024
+ /**
2025
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
2026
+ * resolved value cannot be modified from the callback.
2027
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
2028
+ * @returns A Promise for the completion of the callback.
2029
+ */
2030
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
2031
+ }
2032
+ /**
2033
+ * Fields of the Operation model
2034
+ */
2035
+ export interface OperationFieldRefs {
2036
+ readonly id: Prisma.FieldRef<"Operation", 'Int'>;
2037
+ readonly orderRevId: Prisma.FieldRef<"Operation", 'Int'>;
2038
+ readonly workCenterId: Prisma.FieldRef<"Operation", 'Int'>;
2039
+ readonly seqNo: Prisma.FieldRef<"Operation", 'Int'>;
2040
+ readonly title: Prisma.FieldRef<"Operation", 'String'>;
2041
+ readonly description: Prisma.FieldRef<"Operation", 'String'>;
2042
+ readonly createdAt: Prisma.FieldRef<"Operation", 'DateTime'>;
2043
+ readonly createdById: Prisma.FieldRef<"Operation", 'Int'>;
2044
+ readonly updatedAt: Prisma.FieldRef<"Operation", 'DateTime'>;
2045
+ readonly updatedById: Prisma.FieldRef<"Operation", 'Int'>;
2046
+ }
2047
+ /**
2048
+ * Operation findUnique
2049
+ */
2050
+ export type OperationFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2051
+ /**
2052
+ * Select specific fields to fetch from the Operation
2053
+ */
2054
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2055
+ /**
2056
+ * Omit specific fields from the Operation
2057
+ */
2058
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2059
+ /**
2060
+ * Choose, which related nodes to fetch as well
2061
+ */
2062
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2063
+ /**
2064
+ * Filter, which Operation to fetch.
2065
+ */
2066
+ where: Prisma.OperationWhereUniqueInput;
2067
+ };
2068
+ /**
2069
+ * Operation findUniqueOrThrow
2070
+ */
2071
+ export type OperationFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2072
+ /**
2073
+ * Select specific fields to fetch from the Operation
2074
+ */
2075
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2076
+ /**
2077
+ * Omit specific fields from the Operation
2078
+ */
2079
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2080
+ /**
2081
+ * Choose, which related nodes to fetch as well
2082
+ */
2083
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2084
+ /**
2085
+ * Filter, which Operation to fetch.
2086
+ */
2087
+ where: Prisma.OperationWhereUniqueInput;
2088
+ };
2089
+ /**
2090
+ * Operation findFirst
2091
+ */
2092
+ export type OperationFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2093
+ /**
2094
+ * Select specific fields to fetch from the Operation
2095
+ */
2096
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2097
+ /**
2098
+ * Omit specific fields from the Operation
2099
+ */
2100
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2101
+ /**
2102
+ * Choose, which related nodes to fetch as well
2103
+ */
2104
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2105
+ /**
2106
+ * Filter, which Operation to fetch.
2107
+ */
2108
+ where?: Prisma.OperationWhereInput;
2109
+ /**
2110
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2111
+ *
2112
+ * Determine the order of Operations to fetch.
2113
+ */
2114
+ orderBy?: Prisma.OperationOrderByWithRelationInput | Prisma.OperationOrderByWithRelationInput[];
2115
+ /**
2116
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2117
+ *
2118
+ * Sets the position for searching for Operations.
2119
+ */
2120
+ cursor?: Prisma.OperationWhereUniqueInput;
2121
+ /**
2122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2123
+ *
2124
+ * Take `±n` Operations from the position of the cursor.
2125
+ */
2126
+ take?: number;
2127
+ /**
2128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2129
+ *
2130
+ * Skip the first `n` Operations.
2131
+ */
2132
+ skip?: number;
2133
+ /**
2134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2135
+ *
2136
+ * Filter by unique combinations of Operations.
2137
+ */
2138
+ distinct?: Prisma.OperationScalarFieldEnum | Prisma.OperationScalarFieldEnum[];
2139
+ };
2140
+ /**
2141
+ * Operation findFirstOrThrow
2142
+ */
2143
+ export type OperationFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2144
+ /**
2145
+ * Select specific fields to fetch from the Operation
2146
+ */
2147
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2148
+ /**
2149
+ * Omit specific fields from the Operation
2150
+ */
2151
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2152
+ /**
2153
+ * Choose, which related nodes to fetch as well
2154
+ */
2155
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2156
+ /**
2157
+ * Filter, which Operation to fetch.
2158
+ */
2159
+ where?: Prisma.OperationWhereInput;
2160
+ /**
2161
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2162
+ *
2163
+ * Determine the order of Operations to fetch.
2164
+ */
2165
+ orderBy?: Prisma.OperationOrderByWithRelationInput | Prisma.OperationOrderByWithRelationInput[];
2166
+ /**
2167
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2168
+ *
2169
+ * Sets the position for searching for Operations.
2170
+ */
2171
+ cursor?: Prisma.OperationWhereUniqueInput;
2172
+ /**
2173
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2174
+ *
2175
+ * Take `±n` Operations from the position of the cursor.
2176
+ */
2177
+ take?: number;
2178
+ /**
2179
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2180
+ *
2181
+ * Skip the first `n` Operations.
2182
+ */
2183
+ skip?: number;
2184
+ /**
2185
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2186
+ *
2187
+ * Filter by unique combinations of Operations.
2188
+ */
2189
+ distinct?: Prisma.OperationScalarFieldEnum | Prisma.OperationScalarFieldEnum[];
2190
+ };
2191
+ /**
2192
+ * Operation findMany
2193
+ */
2194
+ export type OperationFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2195
+ /**
2196
+ * Select specific fields to fetch from the Operation
2197
+ */
2198
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2199
+ /**
2200
+ * Omit specific fields from the Operation
2201
+ */
2202
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2203
+ /**
2204
+ * Choose, which related nodes to fetch as well
2205
+ */
2206
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2207
+ /**
2208
+ * Filter, which Operations to fetch.
2209
+ */
2210
+ where?: Prisma.OperationWhereInput;
2211
+ /**
2212
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
2213
+ *
2214
+ * Determine the order of Operations to fetch.
2215
+ */
2216
+ orderBy?: Prisma.OperationOrderByWithRelationInput | Prisma.OperationOrderByWithRelationInput[];
2217
+ /**
2218
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
2219
+ *
2220
+ * Sets the position for listing Operations.
2221
+ */
2222
+ cursor?: Prisma.OperationWhereUniqueInput;
2223
+ /**
2224
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2225
+ *
2226
+ * Take `±n` Operations from the position of the cursor.
2227
+ */
2228
+ take?: number;
2229
+ /**
2230
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
2231
+ *
2232
+ * Skip the first `n` Operations.
2233
+ */
2234
+ skip?: number;
2235
+ /**
2236
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
2237
+ *
2238
+ * Filter by unique combinations of Operations.
2239
+ */
2240
+ distinct?: Prisma.OperationScalarFieldEnum | Prisma.OperationScalarFieldEnum[];
2241
+ };
2242
+ /**
2243
+ * Operation create
2244
+ */
2245
+ export type OperationCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2246
+ /**
2247
+ * Select specific fields to fetch from the Operation
2248
+ */
2249
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2250
+ /**
2251
+ * Omit specific fields from the Operation
2252
+ */
2253
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2254
+ /**
2255
+ * Choose, which related nodes to fetch as well
2256
+ */
2257
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2258
+ /**
2259
+ * The data needed to create a Operation.
2260
+ */
2261
+ data: Prisma.XOR<Prisma.OperationCreateInput, Prisma.OperationUncheckedCreateInput>;
2262
+ };
2263
+ /**
2264
+ * Operation createMany
2265
+ */
2266
+ export type OperationCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2267
+ /**
2268
+ * The data used to create many Operations.
2269
+ */
2270
+ data: Prisma.OperationCreateManyInput | Prisma.OperationCreateManyInput[];
2271
+ };
2272
+ /**
2273
+ * Operation createManyAndReturn
2274
+ */
2275
+ export type OperationCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2276
+ /**
2277
+ * Select specific fields to fetch from the Operation
2278
+ */
2279
+ select?: Prisma.OperationSelectCreateManyAndReturn<ExtArgs> | null;
2280
+ /**
2281
+ * Omit specific fields from the Operation
2282
+ */
2283
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2284
+ /**
2285
+ * The data used to create many Operations.
2286
+ */
2287
+ data: Prisma.OperationCreateManyInput | Prisma.OperationCreateManyInput[];
2288
+ /**
2289
+ * Choose, which related nodes to fetch as well
2290
+ */
2291
+ include?: Prisma.OperationIncludeCreateManyAndReturn<ExtArgs> | null;
2292
+ };
2293
+ /**
2294
+ * Operation update
2295
+ */
2296
+ export type OperationUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2297
+ /**
2298
+ * Select specific fields to fetch from the Operation
2299
+ */
2300
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2301
+ /**
2302
+ * Omit specific fields from the Operation
2303
+ */
2304
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2305
+ /**
2306
+ * Choose, which related nodes to fetch as well
2307
+ */
2308
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2309
+ /**
2310
+ * The data needed to update a Operation.
2311
+ */
2312
+ data: Prisma.XOR<Prisma.OperationUpdateInput, Prisma.OperationUncheckedUpdateInput>;
2313
+ /**
2314
+ * Choose, which Operation to update.
2315
+ */
2316
+ where: Prisma.OperationWhereUniqueInput;
2317
+ };
2318
+ /**
2319
+ * Operation updateMany
2320
+ */
2321
+ export type OperationUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2322
+ /**
2323
+ * The data used to update Operations.
2324
+ */
2325
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyInput>;
2326
+ /**
2327
+ * Filter which Operations to update
2328
+ */
2329
+ where?: Prisma.OperationWhereInput;
2330
+ /**
2331
+ * Limit how many Operations to update.
2332
+ */
2333
+ limit?: number;
2334
+ };
2335
+ /**
2336
+ * Operation updateManyAndReturn
2337
+ */
2338
+ export type OperationUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2339
+ /**
2340
+ * Select specific fields to fetch from the Operation
2341
+ */
2342
+ select?: Prisma.OperationSelectUpdateManyAndReturn<ExtArgs> | null;
2343
+ /**
2344
+ * Omit specific fields from the Operation
2345
+ */
2346
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2347
+ /**
2348
+ * The data used to update Operations.
2349
+ */
2350
+ data: Prisma.XOR<Prisma.OperationUpdateManyMutationInput, Prisma.OperationUncheckedUpdateManyInput>;
2351
+ /**
2352
+ * Filter which Operations to update
2353
+ */
2354
+ where?: Prisma.OperationWhereInput;
2355
+ /**
2356
+ * Limit how many Operations to update.
2357
+ */
2358
+ limit?: number;
2359
+ /**
2360
+ * Choose, which related nodes to fetch as well
2361
+ */
2362
+ include?: Prisma.OperationIncludeUpdateManyAndReturn<ExtArgs> | null;
2363
+ };
2364
+ /**
2365
+ * Operation upsert
2366
+ */
2367
+ export type OperationUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2368
+ /**
2369
+ * Select specific fields to fetch from the Operation
2370
+ */
2371
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2372
+ /**
2373
+ * Omit specific fields from the Operation
2374
+ */
2375
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2376
+ /**
2377
+ * Choose, which related nodes to fetch as well
2378
+ */
2379
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2380
+ /**
2381
+ * The filter to search for the Operation to update in case it exists.
2382
+ */
2383
+ where: Prisma.OperationWhereUniqueInput;
2384
+ /**
2385
+ * In case the Operation found by the `where` argument doesn't exist, create a new Operation with this data.
2386
+ */
2387
+ create: Prisma.XOR<Prisma.OperationCreateInput, Prisma.OperationUncheckedCreateInput>;
2388
+ /**
2389
+ * In case the Operation was found with the provided `where` argument, update it with this data.
2390
+ */
2391
+ update: Prisma.XOR<Prisma.OperationUpdateInput, Prisma.OperationUncheckedUpdateInput>;
2392
+ };
2393
+ /**
2394
+ * Operation delete
2395
+ */
2396
+ export type OperationDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2397
+ /**
2398
+ * Select specific fields to fetch from the Operation
2399
+ */
2400
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2401
+ /**
2402
+ * Omit specific fields from the Operation
2403
+ */
2404
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2405
+ /**
2406
+ * Choose, which related nodes to fetch as well
2407
+ */
2408
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2409
+ /**
2410
+ * Filter which Operation to delete.
2411
+ */
2412
+ where: Prisma.OperationWhereUniqueInput;
2413
+ };
2414
+ /**
2415
+ * Operation deleteMany
2416
+ */
2417
+ export type OperationDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2418
+ /**
2419
+ * Filter which Operations to delete
2420
+ */
2421
+ where?: Prisma.OperationWhereInput;
2422
+ /**
2423
+ * Limit how many Operations to delete.
2424
+ */
2425
+ limit?: number;
2426
+ };
2427
+ /**
2428
+ * Operation.workCenter
2429
+ */
2430
+ export type Operation$workCenterArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2431
+ /**
2432
+ * Select specific fields to fetch from the WorkCenter
2433
+ */
2434
+ select?: Prisma.WorkCenterSelect<ExtArgs> | null;
2435
+ /**
2436
+ * Omit specific fields from the WorkCenter
2437
+ */
2438
+ omit?: Prisma.WorkCenterOmit<ExtArgs> | null;
2439
+ /**
2440
+ * Choose, which related nodes to fetch as well
2441
+ */
2442
+ include?: Prisma.WorkCenterInclude<ExtArgs> | null;
2443
+ where?: Prisma.WorkCenterWhereInput;
2444
+ };
2445
+ /**
2446
+ * Operation.steps
2447
+ */
2448
+ export type Operation$stepsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2449
+ /**
2450
+ * Select specific fields to fetch from the Step
2451
+ */
2452
+ select?: Prisma.StepSelect<ExtArgs> | null;
2453
+ /**
2454
+ * Omit specific fields from the Step
2455
+ */
2456
+ omit?: Prisma.StepOmit<ExtArgs> | null;
2457
+ /**
2458
+ * Choose, which related nodes to fetch as well
2459
+ */
2460
+ include?: Prisma.StepInclude<ExtArgs> | null;
2461
+ where?: Prisma.StepWhereInput;
2462
+ orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[];
2463
+ cursor?: Prisma.StepWhereUniqueInput;
2464
+ take?: number;
2465
+ skip?: number;
2466
+ distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[];
2467
+ };
2468
+ /**
2469
+ * Operation.fieldRefs
2470
+ */
2471
+ export type Operation$fieldRefsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2472
+ /**
2473
+ * Select specific fields to fetch from the OperationFieldRef
2474
+ */
2475
+ select?: Prisma.OperationFieldRefSelect<ExtArgs> | null;
2476
+ /**
2477
+ * Omit specific fields from the OperationFieldRef
2478
+ */
2479
+ omit?: Prisma.OperationFieldRefOmit<ExtArgs> | null;
2480
+ /**
2481
+ * Choose, which related nodes to fetch as well
2482
+ */
2483
+ include?: Prisma.OperationFieldRefInclude<ExtArgs> | null;
2484
+ where?: Prisma.OperationFieldRefWhereInput;
2485
+ orderBy?: Prisma.OperationFieldRefOrderByWithRelationInput | Prisma.OperationFieldRefOrderByWithRelationInput[];
2486
+ cursor?: Prisma.OperationFieldRefWhereUniqueInput;
2487
+ take?: number;
2488
+ skip?: number;
2489
+ distinct?: Prisma.OperationFieldRefScalarFieldEnum | Prisma.OperationFieldRefScalarFieldEnum[];
2490
+ };
2491
+ /**
2492
+ * Operation.operationRuns
2493
+ */
2494
+ export type Operation$operationRunsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2495
+ /**
2496
+ * Select specific fields to fetch from the OperationRun
2497
+ */
2498
+ select?: Prisma.OperationRunSelect<ExtArgs> | null;
2499
+ /**
2500
+ * Omit specific fields from the OperationRun
2501
+ */
2502
+ omit?: Prisma.OperationRunOmit<ExtArgs> | null;
2503
+ /**
2504
+ * Choose, which related nodes to fetch as well
2505
+ */
2506
+ include?: Prisma.OperationRunInclude<ExtArgs> | null;
2507
+ where?: Prisma.OperationRunWhereInput;
2508
+ orderBy?: Prisma.OperationRunOrderByWithRelationInput | Prisma.OperationRunOrderByWithRelationInput[];
2509
+ cursor?: Prisma.OperationRunWhereUniqueInput;
2510
+ take?: number;
2511
+ skip?: number;
2512
+ distinct?: Prisma.OperationRunScalarFieldEnum | Prisma.OperationRunScalarFieldEnum[];
2513
+ };
2514
+ /**
2515
+ * Operation.predecessors
2516
+ */
2517
+ export type Operation$predecessorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2518
+ /**
2519
+ * Select specific fields to fetch from the OperationDependency
2520
+ */
2521
+ select?: Prisma.OperationDependencySelect<ExtArgs> | null;
2522
+ /**
2523
+ * Omit specific fields from the OperationDependency
2524
+ */
2525
+ omit?: Prisma.OperationDependencyOmit<ExtArgs> | null;
2526
+ /**
2527
+ * Choose, which related nodes to fetch as well
2528
+ */
2529
+ include?: Prisma.OperationDependencyInclude<ExtArgs> | null;
2530
+ where?: Prisma.OperationDependencyWhereInput;
2531
+ orderBy?: Prisma.OperationDependencyOrderByWithRelationInput | Prisma.OperationDependencyOrderByWithRelationInput[];
2532
+ cursor?: Prisma.OperationDependencyWhereUniqueInput;
2533
+ take?: number;
2534
+ skip?: number;
2535
+ distinct?: Prisma.OperationDependencyScalarFieldEnum | Prisma.OperationDependencyScalarFieldEnum[];
2536
+ };
2537
+ /**
2538
+ * Operation.successors
2539
+ */
2540
+ export type Operation$successorsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2541
+ /**
2542
+ * Select specific fields to fetch from the OperationDependency
2543
+ */
2544
+ select?: Prisma.OperationDependencySelect<ExtArgs> | null;
2545
+ /**
2546
+ * Omit specific fields from the OperationDependency
2547
+ */
2548
+ omit?: Prisma.OperationDependencyOmit<ExtArgs> | null;
2549
+ /**
2550
+ * Choose, which related nodes to fetch as well
2551
+ */
2552
+ include?: Prisma.OperationDependencyInclude<ExtArgs> | null;
2553
+ where?: Prisma.OperationDependencyWhereInput;
2554
+ orderBy?: Prisma.OperationDependencyOrderByWithRelationInput | Prisma.OperationDependencyOrderByWithRelationInput[];
2555
+ cursor?: Prisma.OperationDependencyWhereUniqueInput;
2556
+ take?: number;
2557
+ skip?: number;
2558
+ distinct?: Prisma.OperationDependencyScalarFieldEnum | Prisma.OperationDependencyScalarFieldEnum[];
2559
+ };
2560
+ /**
2561
+ * Operation without action
2562
+ */
2563
+ export type OperationDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2564
+ /**
2565
+ * Select specific fields to fetch from the Operation
2566
+ */
2567
+ select?: Prisma.OperationSelect<ExtArgs> | null;
2568
+ /**
2569
+ * Omit specific fields from the Operation
2570
+ */
2571
+ omit?: Prisma.OperationOmit<ExtArgs> | null;
2572
+ /**
2573
+ * Choose, which related nodes to fetch as well
2574
+ */
2575
+ include?: Prisma.OperationInclude<ExtArgs> | null;
2576
+ };
2577
+ export {};
2578
+ //# sourceMappingURL=Operation.d.ts.map