@machynx/data-db 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1174 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+
8
+ const {
9
+ Decimal,
10
+ DbNull,
11
+ JsonNull,
12
+ AnyNull,
13
+ NullTypes,
14
+ makeStrictEnum,
15
+ Public,
16
+ getRuntime,
17
+ skip
18
+ } = require('./runtime/index-browser.js')
19
+
20
+
21
+ const Prisma = {}
22
+
23
+ exports.Prisma = Prisma
24
+ exports.$Enums = {}
25
+
26
+ /**
27
+ * Prisma Client JS version: 7.0.0
28
+ * Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513
29
+ */
30
+ Prisma.prismaVersion = {
31
+ client: "7.0.0",
32
+ engine: "0c19ccc313cf9911a90d99d2ac2eb0280c76c513"
33
+ }
34
+
35
+ Prisma.PrismaClientKnownRequestError = () => {
36
+ const runtimeName = getRuntime().prettyName;
37
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
38
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
39
+ )};
40
+ Prisma.PrismaClientUnknownRequestError = () => {
41
+ const runtimeName = getRuntime().prettyName;
42
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
43
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
44
+ )}
45
+ Prisma.PrismaClientRustPanicError = () => {
46
+ const runtimeName = getRuntime().prettyName;
47
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
48
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
49
+ )}
50
+ Prisma.PrismaClientInitializationError = () => {
51
+ const runtimeName = getRuntime().prettyName;
52
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
53
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
54
+ )}
55
+ Prisma.PrismaClientValidationError = () => {
56
+ const runtimeName = getRuntime().prettyName;
57
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
58
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
59
+ )}
60
+ Prisma.Decimal = Decimal
61
+
62
+ /**
63
+ * Re-export of sql-template-tag
64
+ */
65
+ Prisma.sql = () => {
66
+ const runtimeName = getRuntime().prettyName;
67
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
68
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
69
+ )}
70
+ Prisma.empty = () => {
71
+ const runtimeName = getRuntime().prettyName;
72
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
73
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
74
+ )}
75
+ Prisma.join = () => {
76
+ const runtimeName = getRuntime().prettyName;
77
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
78
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
79
+ )}
80
+ Prisma.raw = () => {
81
+ const runtimeName = getRuntime().prettyName;
82
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
83
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
84
+ )}
85
+ Prisma.validator = Public.validator
86
+
87
+ /**
88
+ * Extensions
89
+ */
90
+ Prisma.getExtensionContext = () => {
91
+ const runtimeName = getRuntime().prettyName;
92
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
93
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
94
+ )}
95
+ Prisma.defineExtension = () => {
96
+ const runtimeName = getRuntime().prettyName;
97
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
98
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`,
99
+ )}
100
+
101
+ /**
102
+ * Shorthand utilities for JSON filtering
103
+ */
104
+ Prisma.DbNull = DbNull
105
+ Prisma.JsonNull = JsonNull
106
+ Prisma.AnyNull = AnyNull
107
+
108
+ Prisma.NullTypes = NullTypes
109
+
110
+
111
+
112
+ /**
113
+ * Enums
114
+ */
115
+
116
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
117
+ ReadUncommitted: 'ReadUncommitted',
118
+ ReadCommitted: 'ReadCommitted',
119
+ RepeatableRead: 'RepeatableRead',
120
+ Serializable: 'Serializable'
121
+ });
122
+
123
+ exports.Prisma.MachineHourlyAnalyticsScalarFieldEnum = {
124
+ id: 'id',
125
+ machineId: 'machineId',
126
+ organizationId: 'organizationId',
127
+ totalProductionCount: 'totalProductionCount',
128
+ efficiency: 'efficiency',
129
+ utilization: 'utilization',
130
+ totalPowerConsumed: 'totalPowerConsumed',
131
+ idleTime: 'idleTime',
132
+ nonWorkingTime: 'nonWorkingTime',
133
+ upTime: 'upTime',
134
+ productiveTime: 'productiveTime',
135
+ startDateTime: 'startDateTime',
136
+ endDateTime: 'endDateTime',
137
+ createdAt: 'createdAt',
138
+ updatedAt: 'updatedAt'
139
+ };
140
+
141
+ exports.Prisma.MachineDailyAnalyticsScalarFieldEnum = {
142
+ id: 'id',
143
+ machineId: 'machineId',
144
+ organizationId: 'organizationId',
145
+ totalProductionCount: 'totalProductionCount',
146
+ avgEfficiency: 'avgEfficiency',
147
+ avgUtilization: 'avgUtilization',
148
+ totalPowerConsumed: 'totalPowerConsumed',
149
+ totalUpTime: 'totalUpTime',
150
+ date: 'date',
151
+ createdAt: 'createdAt',
152
+ updatedAt: 'updatedAt'
153
+ };
154
+
155
+ exports.Prisma.MachineMonthlyAnalyticsScalarFieldEnum = {
156
+ id: 'id',
157
+ machineId: 'machineId',
158
+ organizationId: 'organizationId',
159
+ totalProductionCount: 'totalProductionCount',
160
+ avgEfficiency: 'avgEfficiency',
161
+ totalPowerConsumed: 'totalPowerConsumed',
162
+ month: 'month',
163
+ year: 'year',
164
+ createdAt: 'createdAt',
165
+ updatedAt: 'updatedAt'
166
+ };
167
+
168
+ exports.Prisma.LineHourlyAnalyticsScalarFieldEnum = {
169
+ id: 'id',
170
+ assemblyLineId: 'assemblyLineId',
171
+ organizationId: 'organizationId',
172
+ averageEfficiency: 'averageEfficiency',
173
+ averageUtilization: 'averageUtilization',
174
+ totalProductionCount: 'totalProductionCount',
175
+ startDateTime: 'startDateTime',
176
+ endDateTime: 'endDateTime',
177
+ createdAt: 'createdAt',
178
+ updatedAt: 'updatedAt'
179
+ };
180
+
181
+ exports.Prisma.FloorHourlyAnalyticsScalarFieldEnum = {
182
+ id: 'id',
183
+ floorId: 'floorId',
184
+ organizationId: 'organizationId',
185
+ averageEfficiency: 'averageEfficiency',
186
+ totalProductionCount: 'totalProductionCount',
187
+ startDateTime: 'startDateTime',
188
+ endDateTime: 'endDateTime',
189
+ createdAt: 'createdAt',
190
+ updatedAt: 'updatedAt'
191
+ };
192
+
193
+ exports.Prisma.FactoryHourlyAnalyticsScalarFieldEnum = {
194
+ id: 'id',
195
+ factoryId: 'factoryId',
196
+ organizationId: 'organizationId',
197
+ averageEfficiency: 'averageEfficiency',
198
+ totalProductionCount: 'totalProductionCount',
199
+ startDateTime: 'startDateTime',
200
+ endDateTime: 'endDateTime',
201
+ createdAt: 'createdAt',
202
+ updatedAt: 'updatedAt'
203
+ };
204
+
205
+ exports.Prisma.DeviceHourlyAnalyticsScalarFieldEnum = {
206
+ id: 'id',
207
+ deviceId: 'deviceId',
208
+ machineHourlyAnalyticsId: 'machineHourlyAnalyticsId',
209
+ organizationId: 'organizationId',
210
+ totalOnTime: 'totalOnTime',
211
+ totalActiveTime: 'totalActiveTime',
212
+ totalWorkingTime: 'totalWorkingTime',
213
+ startDateTime: 'startDateTime',
214
+ endDateTime: 'endDateTime',
215
+ createdAt: 'createdAt',
216
+ updatedAt: 'updatedAt'
217
+ };
218
+
219
+ exports.Prisma.SensorHourlyAnalyticsScalarFieldEnum = {
220
+ id: 'id',
221
+ sensorId: 'sensorId',
222
+ deviceHourlyAnalyticsId: 'deviceHourlyAnalyticsId',
223
+ initialSense: 'initialSense',
224
+ finalSense: 'finalSense',
225
+ startDateTime: 'startDateTime',
226
+ endDateTime: 'endDateTime',
227
+ createdAt: 'createdAt',
228
+ updatedAt: 'updatedAt'
229
+ };
230
+
231
+ exports.Prisma.ProximitySensorHourlyAnalyticsScalarFieldEnum = {
232
+ id: 'id',
233
+ sensorHourlyAnalyticsId: 'sensorHourlyAnalyticsId',
234
+ totalDetections: 'totalDetections',
235
+ productiveDetections: 'productiveDetections',
236
+ startDateTime: 'startDateTime',
237
+ endDateTime: 'endDateTime',
238
+ createdAt: 'createdAt',
239
+ updatedAt: 'updatedAt'
240
+ };
241
+
242
+ exports.Prisma.InfraredSensorHourlyAnalyticsScalarFieldEnum = {
243
+ id: 'id',
244
+ sensorHourlyAnalyticsId: 'sensorHourlyAnalyticsId',
245
+ totalDetections: 'totalDetections',
246
+ productiveDetections: 'productiveDetections',
247
+ startDateTime: 'startDateTime',
248
+ endDateTime: 'endDateTime',
249
+ createdAt: 'createdAt',
250
+ updatedAt: 'updatedAt'
251
+ };
252
+
253
+ exports.Prisma.DevicePowerSensorHourlyAnalyticsScalarFieldEnum = {
254
+ id: 'id',
255
+ deviceHourlyAnalyticsId: 'deviceHourlyAnalyticsId',
256
+ powerEvents: 'powerEvents',
257
+ totalOnTime: 'totalOnTime',
258
+ startDateTime: 'startDateTime',
259
+ endDateTime: 'endDateTime',
260
+ createdAt: 'createdAt',
261
+ updatedAt: 'updatedAt'
262
+ };
263
+
264
+ exports.Prisma.AuditLogScalarFieldEnum = {
265
+ id: 'id',
266
+ entityName: 'entityName',
267
+ entityId: 'entityId',
268
+ action: 'action',
269
+ userId: 'userId',
270
+ orgId: 'orgId',
271
+ timestamp: 'timestamp',
272
+ httpMethod: 'httpMethod',
273
+ route: 'route',
274
+ statusCode: 'statusCode',
275
+ ipAddress: 'ipAddress',
276
+ userAgent: 'userAgent',
277
+ oldValues: 'oldValues',
278
+ newValues: 'newValues'
279
+ };
280
+
281
+ exports.Prisma.ChatbotHistoryScalarFieldEnum = {
282
+ id: 'id',
283
+ title: 'title',
284
+ userId: 'userId',
285
+ organizationId: 'organizationId',
286
+ createdAt: 'createdAt',
287
+ updatedAt: 'updatedAt'
288
+ };
289
+
290
+ exports.Prisma.ChatbotMessageScalarFieldEnum = {
291
+ id: 'id',
292
+ chatHistoryId: 'chatHistoryId',
293
+ sender: 'sender',
294
+ message: 'message',
295
+ tokensUsed: 'tokensUsed',
296
+ jsonContent: 'jsonContent',
297
+ createdAt: 'createdAt',
298
+ updatedAt: 'updatedAt'
299
+ };
300
+
301
+ exports.Prisma.GatewayScalarFieldEnum = {
302
+ id: 'id',
303
+ gatewayUid: 'gatewayUid',
304
+ gatewayName: 'gatewayName',
305
+ isActive: 'isActive',
306
+ floorId: 'floorId',
307
+ secret: 'secret',
308
+ currentWifiSSID: 'currentWifiSSID',
309
+ currentWifiPassword: 'currentWifiPassword',
310
+ currentMQTTBrokerUrl: 'currentMQTTBrokerUrl',
311
+ fallBackWifiSSID: 'fallBackWifiSSID',
312
+ fallBackWifiPassword: 'fallBackWifiPassword',
313
+ createdAt: 'createdAt',
314
+ updatedAt: 'updatedAt'
315
+ };
316
+
317
+ exports.Prisma.GatewayApiTokenScalarFieldEnum = {
318
+ id: 'id',
319
+ gatewayId: 'gatewayId',
320
+ apiToken: 'apiToken',
321
+ expiresAt: 'expiresAt',
322
+ createdAt: 'createdAt',
323
+ updatedAt: 'updatedAt'
324
+ };
325
+
326
+ exports.Prisma.DeviceScalarFieldEnum = {
327
+ id: 'id',
328
+ globalDeviceUid: 'globalDeviceUid',
329
+ deviceUid: 'deviceUid',
330
+ deviceName: 'deviceName',
331
+ isActive: 'isActive',
332
+ orgId: 'orgId',
333
+ gatewayId: 'gatewayId',
334
+ machineId: 'machineId',
335
+ assemblyLineId: 'assemblyLineId',
336
+ floorId: 'floorId',
337
+ factoryId: 'factoryId',
338
+ createdAt: 'createdAt',
339
+ updatedAt: 'updatedAt'
340
+ };
341
+
342
+ exports.Prisma.SensorScalarFieldEnum = {
343
+ id: 'id',
344
+ sensorUid: 'sensorUid',
345
+ sensorName: 'sensorName',
346
+ sensorType: 'sensorType',
347
+ deviceId: 'deviceId',
348
+ isActive: 'isActive',
349
+ machineId: 'machineId',
350
+ assemblyLineId: 'assemblyLineId',
351
+ floorId: 'floorId',
352
+ factoryId: 'factoryId',
353
+ createdAt: 'createdAt',
354
+ updatedAt: 'updatedAt'
355
+ };
356
+
357
+ exports.Prisma.ProximitySensorConfigScalarFieldEnum = {
358
+ id: 'id',
359
+ sensorId: 'sensorId',
360
+ range: 'range',
361
+ sensitivity: 'sensitivity',
362
+ aggregationFactor: 'aggregationFactor',
363
+ createdAt: 'createdAt',
364
+ updatedAt: 'updatedAt'
365
+ };
366
+
367
+ exports.Prisma.CurrentSensorConfigScalarFieldEnum = {
368
+ id: 'id',
369
+ sensorId: 'sensorId',
370
+ currentThreshold: 'currentThreshold',
371
+ createdAt: 'createdAt',
372
+ updatedAt: 'updatedAt'
373
+ };
374
+
375
+ exports.Prisma.InfraredSensorConfigScalarFieldEnum = {
376
+ id: 'id',
377
+ sensorId: 'sensorId',
378
+ wavelength: 'wavelength',
379
+ resolution: 'resolution',
380
+ aggregationFactor: 'aggregationFactor',
381
+ createdAt: 'createdAt',
382
+ updatedAt: 'updatedAt'
383
+ };
384
+
385
+ exports.Prisma.MachineDeviceAssignmentScalarFieldEnum = {
386
+ id: 'id',
387
+ deviceId: 'deviceId',
388
+ machineId: 'machineId',
389
+ assignedAt: 'assignedAt',
390
+ unassignedAt: 'unassignedAt'
391
+ };
392
+
393
+ exports.Prisma.SensorLogScalarFieldEnum = {
394
+ id: 'id',
395
+ sensorId: 'sensorId',
396
+ senseTime: 'senseTime',
397
+ isProcessed: 'isProcessed',
398
+ createdAt: 'createdAt',
399
+ updatedAt: 'updatedAt'
400
+ };
401
+
402
+ exports.Prisma.RFIDSensorLogScalarFieldEnum = {
403
+ id: 'id',
404
+ sensorLogId: 'sensorLogId',
405
+ rfid: 'rfid',
406
+ tapType: 'tapType',
407
+ operatorId: 'operatorId',
408
+ createdAt: 'createdAt',
409
+ updatedAt: 'updatedAt'
410
+ };
411
+
412
+ exports.Prisma.ProximitySensorLogScalarFieldEnum = {
413
+ id: 'id',
414
+ sensorLogId: 'sensorLogId',
415
+ createdAt: 'createdAt',
416
+ updatedAt: 'updatedAt'
417
+ };
418
+
419
+ exports.Prisma.InfraredSensorLogScalarFieldEnum = {
420
+ id: 'id',
421
+ sensorLogId: 'sensorLogId',
422
+ createdAt: 'createdAt',
423
+ updatedAt: 'updatedAt'
424
+ };
425
+
426
+ exports.Prisma.CurrentSensorLogScalarFieldEnum = {
427
+ id: 'id',
428
+ sensorLogId: 'sensorLogId',
429
+ currentValue: 'currentValue',
430
+ createdAt: 'createdAt',
431
+ updatedAt: 'updatedAt'
432
+ };
433
+
434
+ exports.Prisma.DevicePowerSensorLogScalarFieldEnum = {
435
+ id: 'id',
436
+ sensorLogId: 'sensorLogId',
437
+ powerState: 'powerState',
438
+ createdAt: 'createdAt',
439
+ updatedAt: 'updatedAt'
440
+ };
441
+
442
+ exports.Prisma.FactoryScalarFieldEnum = {
443
+ id: 'id',
444
+ name: 'name',
445
+ description: 'description',
446
+ organizationId: 'organizationId',
447
+ timeZone: 'timeZone',
448
+ timeZoneString: 'timeZoneString',
449
+ createdAt: 'createdAt',
450
+ updatedAt: 'updatedAt'
451
+ };
452
+
453
+ exports.Prisma.FloorScalarFieldEnum = {
454
+ id: 'id',
455
+ code: 'code',
456
+ name: 'name',
457
+ description: 'description',
458
+ factoryId: 'factoryId',
459
+ isActive: 'isActive',
460
+ searchTags: 'searchTags',
461
+ accessLevel: 'accessLevel',
462
+ floorTypeId: 'floorTypeId',
463
+ createdAt: 'createdAt',
464
+ updatedAt: 'updatedAt'
465
+ };
466
+
467
+ exports.Prisma.FloorTypeScalarFieldEnum = {
468
+ id: 'id',
469
+ name: 'name',
470
+ organizationId: 'organizationId',
471
+ createdAt: 'createdAt',
472
+ updatedAt: 'updatedAt'
473
+ };
474
+
475
+ exports.Prisma.FloorSettingScalarFieldEnum = {
476
+ id: 'id',
477
+ floorId: 'floorId',
478
+ idleThresholdMinutes: 'idleThresholdMinutes',
479
+ oeeExcellentPct: 'oeeExcellentPct',
480
+ oeeAveragePct: 'oeeAveragePct',
481
+ oeePoorPct: 'oeePoorPct',
482
+ downtimeWarnMinutes: 'downtimeWarnMinutes',
483
+ downtimeAlertMinutes: 'downtimeAlertMinutes',
484
+ peakEnergykWh: 'peakEnergykWh',
485
+ offPeakEnergykWh: 'offPeakEnergykWh',
486
+ energyAlertPct: 'energyAlertPct',
487
+ createdAt: 'createdAt',
488
+ updatedAt: 'updatedAt'
489
+ };
490
+
491
+ exports.Prisma.AssemblyLineScalarFieldEnum = {
492
+ id: 'id',
493
+ code: 'code',
494
+ name: 'name',
495
+ description: 'description',
496
+ floorId: 'floorId',
497
+ machineOrder: 'machineOrder',
498
+ assemblyLineTypeId: 'assemblyLineTypeId',
499
+ createdAt: 'createdAt',
500
+ updatedAt: 'updatedAt'
501
+ };
502
+
503
+ exports.Prisma.FactoryShiftScalarFieldEnum = {
504
+ id: 'id',
505
+ factoryId: 'factoryId',
506
+ name: 'name',
507
+ startTime: 'startTime',
508
+ endTime: 'endTime',
509
+ createdAt: 'createdAt',
510
+ updatedAt: 'updatedAt'
511
+ };
512
+
513
+ exports.Prisma.FactoryShiftMachineScalarFieldEnum = {
514
+ id: 'id',
515
+ shiftId: 'shiftId',
516
+ machineId: 'machineId'
517
+ };
518
+
519
+ exports.Prisma.FactoryLotScalarFieldEnum = {
520
+ id: 'id',
521
+ lotNumber: 'lotNumber',
522
+ receivedAt: 'receivedAt',
523
+ expiryAt: 'expiryAt',
524
+ factoryId: 'factoryId',
525
+ createdAt: 'createdAt',
526
+ updatedAt: 'updatedAt'
527
+ };
528
+
529
+ exports.Prisma.FinalProductScalarFieldEnum = {
530
+ id: 'id',
531
+ externalId: 'externalId',
532
+ name: 'name',
533
+ code: 'code',
534
+ factoryId: 'factoryId',
535
+ description: 'description',
536
+ createdAt: 'createdAt',
537
+ updatedAt: 'updatedAt'
538
+ };
539
+
540
+ exports.Prisma.FinalProductRouteScalarFieldEnum = {
541
+ id: 'id',
542
+ finalProductId: 'finalProductId',
543
+ name: 'name',
544
+ sequence: 'sequence',
545
+ createdAt: 'createdAt',
546
+ updatedAt: 'updatedAt'
547
+ };
548
+
549
+ exports.Prisma.FinalProductMachineOperationRouteScalarFieldEnum = {
550
+ id: 'id',
551
+ routeId: 'routeId',
552
+ operationId: 'operationId',
553
+ productAggregationFactor: 'productAggregationFactor',
554
+ sequence: 'sequence',
555
+ expectedDuration: 'expectedDuration',
556
+ createdAt: 'createdAt',
557
+ updatedAt: 'updatedAt'
558
+ };
559
+
560
+ exports.Prisma.FinalProductRouteDependencyScalarFieldEnum = {
561
+ routeId: 'routeId',
562
+ dependsOnRouteId: 'dependsOnRouteId'
563
+ };
564
+
565
+ exports.Prisma.MachineScalarFieldEnum = {
566
+ id: 'id',
567
+ name: 'name',
568
+ details: 'details',
569
+ idealCycleTimeInSeconds: 'idealCycleTimeInSeconds',
570
+ assemblyLineId: 'assemblyLineId',
571
+ machineOperationId: 'machineOperationId',
572
+ trackingType: 'trackingType',
573
+ createdAt: 'createdAt',
574
+ updatedAt: 'updatedAt'
575
+ };
576
+
577
+ exports.Prisma.MachineOperationScalarFieldEnum = {
578
+ id: 'id',
579
+ operationName: 'operationName',
580
+ description: 'description',
581
+ organizationId: 'organizationId',
582
+ productionSIUnit: 'productionSIUnit',
583
+ createdAt: 'createdAt',
584
+ updatedAt: 'updatedAt'
585
+ };
586
+
587
+ exports.Prisma.MachineEventScalarFieldEnum = {
588
+ id: 'id',
589
+ machineId: 'machineId',
590
+ eventTime: 'eventTime',
591
+ category: 'category',
592
+ title: 'title',
593
+ subtitle: 'subtitle',
594
+ description: 'description',
595
+ createdAt: 'createdAt',
596
+ updatedAt: 'updatedAt'
597
+ };
598
+
599
+ exports.Prisma.MachineAlertScalarFieldEnum = {
600
+ id: 'id',
601
+ machineId: 'machineId',
602
+ title: 'title',
603
+ message: 'message',
604
+ severity: 'severity',
605
+ createdAt: 'createdAt',
606
+ resolvedAt: 'resolvedAt'
607
+ };
608
+
609
+ exports.Prisma.MachineAlertSubscriptionScalarFieldEnum = {
610
+ id: 'id',
611
+ userId: 'userId',
612
+ machineId: 'machineId',
613
+ createdAt: 'createdAt'
614
+ };
615
+
616
+ exports.Prisma.MaintenanceLogScalarFieldEnum = {
617
+ id: 'id',
618
+ machineId: 'machineId',
619
+ orgId: 'orgId',
620
+ reportedById: 'reportedById',
621
+ description: 'description',
622
+ status: 'status',
623
+ startTime: 'startTime',
624
+ endTime: 'endTime',
625
+ createdAt: 'createdAt',
626
+ updatedAt: 'updatedAt'
627
+ };
628
+
629
+ exports.Prisma.MaintenanceManagerConfigScalarFieldEnum = {
630
+ id: 'id',
631
+ managerId: 'managerId',
632
+ key: 'key',
633
+ value: 'value',
634
+ updatedAt: 'updatedAt'
635
+ };
636
+
637
+ exports.Prisma.MaintenanceRequestScalarFieldEnum = {
638
+ id: 'id',
639
+ machineId: 'machineId',
640
+ requestedById: 'requestedById',
641
+ title: 'title',
642
+ description: 'description',
643
+ status: 'status',
644
+ priority: 'priority',
645
+ categoryId: 'categoryId',
646
+ createdAt: 'createdAt',
647
+ updatedAt: 'updatedAt'
648
+ };
649
+
650
+ exports.Prisma.MaintenanceRequestCategoryScalarFieldEnum = {
651
+ id: 'id',
652
+ factoryId: 'factoryId',
653
+ name: 'name',
654
+ createdAt: 'createdAt',
655
+ updatedAt: 'updatedAt'
656
+ };
657
+
658
+ exports.Prisma.MaintenanceRequestAssignmentScalarFieldEnum = {
659
+ id: 'id',
660
+ requestId: 'requestId',
661
+ technicianId: 'technicianId',
662
+ assignedById: 'assignedById',
663
+ assignedAt: 'assignedAt'
664
+ };
665
+
666
+ exports.Prisma.MaintenanceRequestUpdateScalarFieldEnum = {
667
+ id: 'id',
668
+ requestId: 'requestId',
669
+ authorId: 'authorId',
670
+ message: 'message',
671
+ createdAt: 'createdAt'
672
+ };
673
+
674
+ exports.Prisma.MaintenanceRequestAttachmentScalarFieldEnum = {
675
+ id: 'id',
676
+ updateId: 'updateId',
677
+ fileUrl: 'fileUrl',
678
+ fileName: 'fileName',
679
+ uploadedAt: 'uploadedAt'
680
+ };
681
+
682
+ exports.Prisma.MaintenanceTechnicianScalarFieldEnum = {
683
+ id: 'id',
684
+ factoryId: 'factoryId',
685
+ name: 'name',
686
+ email: 'email',
687
+ phone: 'phone',
688
+ hiredAt: 'hiredAt',
689
+ createdAt: 'createdAt',
690
+ updatedAt: 'updatedAt'
691
+ };
692
+
693
+ exports.Prisma.TechnicianSpecializationScalarFieldEnum = {
694
+ id: 'id',
695
+ technicianId: 'technicianId',
696
+ specializationId: 'specializationId'
697
+ };
698
+
699
+ exports.Prisma.OperatorScalarFieldEnum = {
700
+ id: 'id',
701
+ rfid: 'rfid',
702
+ externalId: 'externalId',
703
+ name: 'name',
704
+ description: 'description',
705
+ organizationId: 'organizationId',
706
+ factoryId: 'factoryId',
707
+ createdAt: 'createdAt',
708
+ updatedAt: 'updatedAt'
709
+ };
710
+
711
+ exports.Prisma.OperatorTimeLogScalarFieldEnum = {
712
+ id: 'id',
713
+ operatorId: 'operatorId',
714
+ checkInAt: 'checkInAt',
715
+ checkOutAt: 'checkOutAt',
716
+ deviceId: 'deviceId',
717
+ machineId: 'machineId',
718
+ totalWorkingTime: 'totalWorkingTime',
719
+ totalIdleTime: 'totalIdleTime',
720
+ totalNonWorkingTime: 'totalNonWorkingTime',
721
+ efficiency: 'efficiency',
722
+ createdAt: 'createdAt',
723
+ updatedAt: 'updatedAt'
724
+ };
725
+
726
+ exports.Prisma.OrderScalarFieldEnum = {
727
+ id: 'id',
728
+ organizationId: 'organizationId',
729
+ externalId: 'externalId',
730
+ erpSource: 'erpSource',
731
+ customerId: 'customerId',
732
+ orderNumber: 'orderNumber',
733
+ title: 'title',
734
+ description: 'description',
735
+ factoryId: 'factoryId',
736
+ status: 'status',
737
+ progress: 'progress',
738
+ priority: 'priority',
739
+ deadline: 'deadline',
740
+ startDate: 'startDate',
741
+ createdById: 'createdById',
742
+ assignedToId: 'assignedToId',
743
+ assignedById: 'assignedById',
744
+ approvalAssignedToId: 'approvalAssignedToId',
745
+ approvedById: 'approvedById',
746
+ createdAt: 'createdAt',
747
+ updatedAt: 'updatedAt'
748
+ };
749
+
750
+ exports.Prisma.OrderProductScalarFieldEnum = {
751
+ id: 'id',
752
+ orderId: 'orderId',
753
+ productId: 'productId',
754
+ quantity: 'quantity',
755
+ title: 'title',
756
+ description: 'description',
757
+ status: 'status',
758
+ progress: 'progress',
759
+ createdAt: 'createdAt',
760
+ updatedAt: 'updatedAt'
761
+ };
762
+
763
+ exports.Prisma.OrderCommentScalarFieldEnum = {
764
+ id: 'id',
765
+ orderId: 'orderId',
766
+ organizationId: 'organizationId',
767
+ authorId: 'authorId',
768
+ text: 'text',
769
+ createdAt: 'createdAt',
770
+ updatedAt: 'updatedAt'
771
+ };
772
+
773
+ exports.Prisma.ProductionUnitScalarFieldEnum = {
774
+ id: 'id',
775
+ tagId: 'tagId',
776
+ serialNumber: 'serialNumber',
777
+ organizationId: 'organizationId',
778
+ orderProductId: 'orderProductId',
779
+ currentStepId: 'currentStepId',
780
+ status: 'status',
781
+ createdAt: 'createdAt',
782
+ updatedAt: 'updatedAt'
783
+ };
784
+
785
+ exports.Prisma.ProductionUnitLogScalarFieldEnum = {
786
+ id: 'id',
787
+ productionUnitId: 'productionUnitId',
788
+ eventId: 'eventId',
789
+ details: 'details',
790
+ stepId: 'stepId',
791
+ operatorId: 'operatorId',
792
+ createdAt: 'createdAt'
793
+ };
794
+
795
+ exports.Prisma.ProductionRouteStepScalarFieldEnum = {
796
+ id: 'id',
797
+ productionUnitId: 'productionUnitId',
798
+ stepId: 'stepId',
799
+ machineId: 'machineId',
800
+ isCompleted: 'isCompleted',
801
+ createdAt: 'createdAt',
802
+ updatedAt: 'updatedAt'
803
+ };
804
+
805
+ exports.Prisma.ProductionUnitQCScalarFieldEnum = {
806
+ id: 'id',
807
+ productionUnitId: 'productionUnitId',
808
+ status: 'status',
809
+ inspectorId: 'inspectorId',
810
+ notes: 'notes',
811
+ createdAt: 'createdAt',
812
+ updatedAt: 'updatedAt'
813
+ };
814
+
815
+ exports.Prisma.OrganizationUserFactoryEntityAccessScalarFieldEnum = {
816
+ id: 'id',
817
+ userId: 'userId',
818
+ createdAt: 'createdAt',
819
+ updatedAt: 'updatedAt'
820
+ };
821
+
822
+ exports.Prisma.OperatorOperationCategoryScalarFieldEnum = {
823
+ id: 'id',
824
+ factoryId: 'factoryId',
825
+ name: 'name',
826
+ description: 'description',
827
+ createdAt: 'createdAt',
828
+ updatedAt: 'updatedAt'
829
+ };
830
+
831
+ exports.Prisma.TaskScalarFieldEnum = {
832
+ id: 'id',
833
+ operatorId: 'operatorId',
834
+ assignedById: 'assignedById',
835
+ assignedToId: 'assignedToId',
836
+ deviceId: 'deviceId',
837
+ machineId: 'machineId',
838
+ taskGroupId: 'taskGroupId',
839
+ factoryId: 'factoryId',
840
+ organizationId: 'organizationId',
841
+ operatorOpCategoryId: 'operatorOpCategoryId',
842
+ shiftId: 'shiftId',
843
+ title: 'title',
844
+ description: 'description',
845
+ status: 'status',
846
+ startTime: 'startTime',
847
+ endTime: 'endTime',
848
+ targetCount: 'targetCount',
849
+ taskCount: 'taskCount',
850
+ sequence: 'sequence',
851
+ reworkOfTaskId: 'reworkOfTaskId',
852
+ reworkCount: 'reworkCount',
853
+ machineOperationId: 'machineOperationId',
854
+ startedAt: 'startedAt',
855
+ completedAt: 'completedAt',
856
+ createdAt: 'createdAt',
857
+ updatedAt: 'updatedAt'
858
+ };
859
+
860
+ exports.Prisma.TaskGroupScalarFieldEnum = {
861
+ id: 'id',
862
+ description: 'description',
863
+ status: 'status',
864
+ targetCount: 'targetCount',
865
+ factoryId: 'factoryId',
866
+ organizationId: 'organizationId',
867
+ productRouteId: 'productRouteId',
868
+ orderProductId: 'orderProductId',
869
+ deadline: 'deadline',
870
+ reworkOfTaskGroupId: 'reworkOfTaskGroupId',
871
+ reworkCount: 'reworkCount',
872
+ startedAt: 'startedAt',
873
+ completedAt: 'completedAt',
874
+ createdAt: 'createdAt',
875
+ updatedAt: 'updatedAt'
876
+ };
877
+
878
+ exports.Prisma.TaskLotScalarFieldEnum = {
879
+ id: 'id',
880
+ taskId: 'taskId',
881
+ lotId: 'lotId'
882
+ };
883
+
884
+ exports.Prisma.TaskGroupLotScalarFieldEnum = {
885
+ id: 'id',
886
+ taskGroupId: 'taskGroupId',
887
+ lotId: 'lotId'
888
+ };
889
+
890
+ exports.Prisma.TaskInspectionScalarFieldEnum = {
891
+ id: 'id',
892
+ taskId: 'taskId',
893
+ inspectorId: 'inspectorId',
894
+ passed: 'passed',
895
+ defectCount: 'defectCount',
896
+ wasteCount: 'wasteCount',
897
+ notes: 'notes',
898
+ createdAt: 'createdAt',
899
+ updatedAt: 'updatedAt'
900
+ };
901
+
902
+ exports.Prisma.TaskCommentScalarFieldEnum = {
903
+ id: 'id',
904
+ taskId: 'taskId',
905
+ organizationId: 'organizationId',
906
+ authorId: 'authorId',
907
+ text: 'text',
908
+ createdAt: 'createdAt',
909
+ updatedAt: 'updatedAt'
910
+ };
911
+
912
+ exports.Prisma.SortOrder = {
913
+ asc: 'asc',
914
+ desc: 'desc'
915
+ };
916
+
917
+ exports.Prisma.NullableJsonNullValueInput = {
918
+ DbNull: Prisma.DbNull,
919
+ JsonNull: Prisma.JsonNull
920
+ };
921
+
922
+ exports.Prisma.JsonNullValueInput = {
923
+ JsonNull: Prisma.JsonNull
924
+ };
925
+
926
+ exports.Prisma.NullsOrder = {
927
+ first: 'first',
928
+ last: 'last'
929
+ };
930
+
931
+ exports.Prisma.JsonNullValueFilter = {
932
+ DbNull: Prisma.DbNull,
933
+ JsonNull: Prisma.JsonNull,
934
+ AnyNull: Prisma.AnyNull
935
+ };
936
+
937
+ exports.Prisma.QueryMode = {
938
+ default: 'default',
939
+ insensitive: 'insensitive'
940
+ };
941
+ exports.ChatbotMessageSender = exports.$Enums.ChatbotMessageSender = {
942
+ USER: 'USER',
943
+ BOT: 'BOT'
944
+ };
945
+
946
+ exports.SensorType = exports.$Enums.SensorType = {
947
+ PROXIMITY: 'PROXIMITY',
948
+ INFRARED: 'INFRARED',
949
+ RFID: 'RFID',
950
+ CURRENT: 'CURRENT'
951
+ };
952
+
953
+ exports.RFIDTapType = exports.$Enums.RFIDTapType = {
954
+ CHECKIN: 'CHECKIN',
955
+ CHECKOUT: 'CHECKOUT'
956
+ };
957
+
958
+ exports.DevicePowerState = exports.$Enums.DevicePowerState = {
959
+ POWER_ON: 'POWER_ON',
960
+ POWER_OFF: 'POWER_OFF'
961
+ };
962
+
963
+ exports.AccessLevel = exports.$Enums.AccessLevel = {
964
+ PUBLIC: 'PUBLIC',
965
+ PRIVATE: 'PRIVATE'
966
+ };
967
+
968
+ exports.MachineTrackingType = exports.$Enums.MachineTrackingType = {
969
+ MANUAL: 'MANUAL',
970
+ AUTOMATED: 'AUTOMATED'
971
+ };
972
+
973
+ exports.ProductionSIUnit = exports.$Enums.ProductionSIUnit = {
974
+ COUNT: 'COUNT',
975
+ WEIGHT: 'WEIGHT',
976
+ LITERS: 'LITERS'
977
+ };
978
+
979
+ exports.EventCategory = exports.$Enums.EventCategory = {
980
+ GENERAL: 'GENERAL',
981
+ MEDIUM: 'MEDIUM',
982
+ OPERATION: 'OPERATION',
983
+ ALERT: 'ALERT'
984
+ };
985
+
986
+ exports.MachineAlertSeverity = exports.$Enums.MachineAlertSeverity = {
987
+ LOW: 'LOW',
988
+ MEDIUM: 'MEDIUM',
989
+ HIGH: 'HIGH',
990
+ CRITICAL: 'CRITICAL'
991
+ };
992
+
993
+ exports.MaintenanceLogStatus = exports.$Enums.MaintenanceLogStatus = {
994
+ OPEN: 'OPEN',
995
+ IN_PROGRESS: 'IN_PROGRESS',
996
+ COMPLETED: 'COMPLETED',
997
+ CANCELLED: 'CANCELLED'
998
+ };
999
+
1000
+ exports.MaintenanceRequestStatus = exports.$Enums.MaintenanceRequestStatus = {
1001
+ NEW: 'NEW',
1002
+ APPROVED: 'APPROVED',
1003
+ ASSIGNED: 'ASSIGNED',
1004
+ IN_PROGRESS: 'IN_PROGRESS',
1005
+ COMPLETED: 'COMPLETED',
1006
+ CANCELLED: 'CANCELLED'
1007
+ };
1008
+
1009
+ exports.MaintenanceRequestPriority = exports.$Enums.MaintenanceRequestPriority = {
1010
+ LOW: 'LOW',
1011
+ MEDIUM: 'MEDIUM',
1012
+ HIGH: 'HIGH',
1013
+ CRITICAL: 'CRITICAL'
1014
+ };
1015
+
1016
+ exports.OrderStatus = exports.$Enums.OrderStatus = {
1017
+ NEW: 'NEW',
1018
+ CONFIRMED: 'CONFIRMED',
1019
+ IN_PROGRESS: 'IN_PROGRESS',
1020
+ ON_TRACK: 'ON_TRACK',
1021
+ DELAYED: 'DELAYED',
1022
+ AT_RISK: 'AT_RISK',
1023
+ COMPLETED: 'COMPLETED',
1024
+ CANCELED: 'CANCELED'
1025
+ };
1026
+
1027
+ exports.OrderPriority = exports.$Enums.OrderPriority = {
1028
+ LOW: 'LOW',
1029
+ MEDIUM: 'MEDIUM',
1030
+ HIGH: 'HIGH',
1031
+ CRITICAL: 'CRITICAL'
1032
+ };
1033
+
1034
+ exports.OrderProductStatus = exports.$Enums.OrderProductStatus = {
1035
+ NEW: 'NEW',
1036
+ IN_PROGRESS: 'IN_PROGRESS',
1037
+ ON_TRACK: 'ON_TRACK',
1038
+ DELAYED: 'DELAYED',
1039
+ AT_RISK: 'AT_RISK',
1040
+ COMPLETED: 'COMPLETED',
1041
+ CANCELED: 'CANCELED'
1042
+ };
1043
+
1044
+ exports.ProductionUnitStatus = exports.$Enums.ProductionUnitStatus = {
1045
+ IN_PRODUCTION: 'IN_PRODUCTION',
1046
+ IN_QA: 'IN_QA',
1047
+ REWORK: 'REWORK',
1048
+ COMPLETE: 'COMPLETE',
1049
+ REJECTED: 'REJECTED',
1050
+ SHIPPED: 'SHIPPED'
1051
+ };
1052
+
1053
+ exports.TaskStatus = exports.$Enums.TaskStatus = {
1054
+ NEW: 'NEW',
1055
+ IN_PROGRESS: 'IN_PROGRESS',
1056
+ COMPLETED: 'COMPLETED',
1057
+ CANCELED: 'CANCELED',
1058
+ OVERDUE: 'OVERDUE',
1059
+ INCOMPLETE: 'INCOMPLETE'
1060
+ };
1061
+
1062
+ exports.TaskGroupStatus = exports.$Enums.TaskGroupStatus = {
1063
+ NEW: 'NEW',
1064
+ IN_PROGRESS: 'IN_PROGRESS',
1065
+ COMPLETED: 'COMPLETED',
1066
+ CANCELED: 'CANCELED',
1067
+ OVERDUE: 'OVERDUE',
1068
+ INCOMPLETE: 'INCOMPLETE'
1069
+ };
1070
+
1071
+ exports.Prisma.ModelName = {
1072
+ MachineHourlyAnalytics: 'MachineHourlyAnalytics',
1073
+ MachineDailyAnalytics: 'MachineDailyAnalytics',
1074
+ MachineMonthlyAnalytics: 'MachineMonthlyAnalytics',
1075
+ LineHourlyAnalytics: 'LineHourlyAnalytics',
1076
+ FloorHourlyAnalytics: 'FloorHourlyAnalytics',
1077
+ FactoryHourlyAnalytics: 'FactoryHourlyAnalytics',
1078
+ DeviceHourlyAnalytics: 'DeviceHourlyAnalytics',
1079
+ SensorHourlyAnalytics: 'SensorHourlyAnalytics',
1080
+ ProximitySensorHourlyAnalytics: 'ProximitySensorHourlyAnalytics',
1081
+ InfraredSensorHourlyAnalytics: 'InfraredSensorHourlyAnalytics',
1082
+ DevicePowerSensorHourlyAnalytics: 'DevicePowerSensorHourlyAnalytics',
1083
+ AuditLog: 'AuditLog',
1084
+ ChatbotHistory: 'ChatbotHistory',
1085
+ ChatbotMessage: 'ChatbotMessage',
1086
+ Gateway: 'Gateway',
1087
+ GatewayApiToken: 'GatewayApiToken',
1088
+ Device: 'Device',
1089
+ Sensor: 'Sensor',
1090
+ ProximitySensorConfig: 'ProximitySensorConfig',
1091
+ CurrentSensorConfig: 'CurrentSensorConfig',
1092
+ InfraredSensorConfig: 'InfraredSensorConfig',
1093
+ MachineDeviceAssignment: 'MachineDeviceAssignment',
1094
+ SensorLog: 'SensorLog',
1095
+ RFIDSensorLog: 'RFIDSensorLog',
1096
+ ProximitySensorLog: 'ProximitySensorLog',
1097
+ InfraredSensorLog: 'InfraredSensorLog',
1098
+ CurrentSensorLog: 'CurrentSensorLog',
1099
+ DevicePowerSensorLog: 'DevicePowerSensorLog',
1100
+ Factory: 'Factory',
1101
+ Floor: 'Floor',
1102
+ FloorType: 'FloorType',
1103
+ FloorSetting: 'FloorSetting',
1104
+ AssemblyLine: 'AssemblyLine',
1105
+ FactoryShift: 'FactoryShift',
1106
+ FactoryShiftMachine: 'FactoryShiftMachine',
1107
+ FactoryLot: 'FactoryLot',
1108
+ FinalProduct: 'FinalProduct',
1109
+ FinalProductRoute: 'FinalProductRoute',
1110
+ FinalProductMachineOperationRoute: 'FinalProductMachineOperationRoute',
1111
+ FinalProductRouteDependency: 'FinalProductRouteDependency',
1112
+ Machine: 'Machine',
1113
+ MachineOperation: 'MachineOperation',
1114
+ MachineEvent: 'MachineEvent',
1115
+ MachineAlert: 'MachineAlert',
1116
+ MachineAlertSubscription: 'MachineAlertSubscription',
1117
+ MaintenanceLog: 'MaintenanceLog',
1118
+ MaintenanceManagerConfig: 'MaintenanceManagerConfig',
1119
+ MaintenanceRequest: 'MaintenanceRequest',
1120
+ MaintenanceRequestCategory: 'MaintenanceRequestCategory',
1121
+ MaintenanceRequestAssignment: 'MaintenanceRequestAssignment',
1122
+ MaintenanceRequestUpdate: 'MaintenanceRequestUpdate',
1123
+ MaintenanceRequestAttachment: 'MaintenanceRequestAttachment',
1124
+ MaintenanceTechnician: 'MaintenanceTechnician',
1125
+ TechnicianSpecialization: 'TechnicianSpecialization',
1126
+ Operator: 'Operator',
1127
+ OperatorTimeLog: 'OperatorTimeLog',
1128
+ Order: 'Order',
1129
+ OrderProduct: 'OrderProduct',
1130
+ OrderComment: 'OrderComment',
1131
+ ProductionUnit: 'ProductionUnit',
1132
+ ProductionUnitLog: 'ProductionUnitLog',
1133
+ ProductionRouteStep: 'ProductionRouteStep',
1134
+ ProductionUnitQC: 'ProductionUnitQC',
1135
+ OrganizationUserFactoryEntityAccess: 'OrganizationUserFactoryEntityAccess',
1136
+ OperatorOperationCategory: 'OperatorOperationCategory',
1137
+ Task: 'Task',
1138
+ TaskGroup: 'TaskGroup',
1139
+ TaskLot: 'TaskLot',
1140
+ TaskGroupLot: 'TaskGroupLot',
1141
+ TaskInspection: 'TaskInspection',
1142
+ TaskComment: 'TaskComment'
1143
+ };
1144
+
1145
+ /**
1146
+ * This is a stub Prisma Client that will error at runtime if called.
1147
+ */
1148
+ class PrismaClient {
1149
+ constructor() {
1150
+ return new Proxy(this, {
1151
+ get(target, prop) {
1152
+ let message
1153
+ const runtime = getRuntime()
1154
+ if (runtime.isEdge) {
1155
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
1156
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
1157
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
1158
+ `;
1159
+ } else {
1160
+ message = 'PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `' + runtime.prettyName + '`).'
1161
+ }
1162
+
1163
+ message += `
1164
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`
1165
+
1166
+ throw new Error(message)
1167
+ }
1168
+ })
1169
+ }
1170
+ }
1171
+
1172
+ exports.PrismaClient = PrismaClient
1173
+
1174
+ Object.assign(exports, Prisma)