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